Learning Redux - types

Hey everyone,

im learning Redux for the first time.

Im slowly trying to understand as much as i can and i have a question.

I noticed that the guy is creating a 'counter.types.js' file.

In that file he has:

export const INCREMENT = 'INCREMENT';
   export const DECREMENT = 'DECREMENT';

and another file 'counter.actions.js' with the following code:

import { INCREMENT, DECREMENT } from './counter.types';


    export const increaseCounter = () => {

        return {

            type: INCREMENT,

        };

    };

    export const decreaseCounter = () => {

        return {

           type: DECREMENT,

        };

    };

What im wondering is if 'type:' and 'counter.type.js' has to do anything with TypeScript types...

Is this something for TypeScript so that your IDE can help you better?

Or is this something to do with Redux and does Redux then have a 'types' paradigm or something in that nature to help with its coding process...?

Im wondering if this 'counter.types.js' file is something that is necessary for redux to work properly or like i said.. is it just something to do with TypeScript to help you program with your IDE better.

thanks

30