Skip to content

Instantly share code, notes, and snippets.

@fxck
Last active September 12, 2018 09:37
Show Gist options
  • Select an option

  • Save fxck/84f7bf3d74e8b353a048ac11e331c8af to your computer and use it in GitHub Desktop.

Select an option

Save fxck/84f7bf3d74e8b353a048ac11e331c8af to your computer and use it in GitHub Desktop.

Revisions

  1. fxck revised this gist Sep 12, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions loading-action-basic.ts
    Original file line number Diff line number Diff line change
    @@ -5,10 +5,10 @@ export enum ActionTypes {

    export class Add {
    readonly type = ActionTypes.Add;
    constructor(public payload: string);
    constructor(public payload: string) { }
    }

    export class Remove {
    readonly type = ActionTypes.Remove;
    constructor(public payload: string);
    constructor(public payload: string) {}
    }
  2. fxck revised this gist Sep 12, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion loading-action-basic.ts
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    enum ActionTypes {
    export enum ActionTypes {
    Add = '[@my/loading] Add',
    Remove = '[@my/loading] Remove'
    }
  3. fxck created this gist Sep 12, 2018.
    14 changes: 14 additions & 0 deletions loading-action-basic.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    enum ActionTypes {
    Add = '[@my/loading] Add',
    Remove = '[@my/loading] Remove'
    }

    export class Add {
    readonly type = ActionTypes.Add;
    constructor(public payload: string);
    }

    export class Remove {
    readonly type = ActionTypes.Remove;
    constructor(public payload: string);
    }