Skip to content

Commit

Permalink
Fix more linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
unional committed Jan 9, 2017
1 parent c9fa687 commit 5216925
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export interface FluxStandardAction<Payload, Meta> {
* The optional `meta` property MAY be any type of value.
* It is intended for any extra information that is not part of the payload.
*/
meta: Meta
meta: Meta;
}

export interface ErrorFluxStandardAction<CustomError extends Error, Meta> extends FluxStandardAction<CustomError, Meta> {
error: true
error: true;
}

/**
Expand Down
6 changes: 3 additions & 3 deletions test/typings-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ function isCustomAction3(action: any): action is FluxStandardAction<void, string
}

function isCustomAction4(action: any): action is FluxStandardAction<{ message: string }, void> {
return true
return true;
}

let action2 = {}
let action2 = {};
if (isCustomAction4(action2)) {
// type guard infers payload will not be undefined
console.log(action2.payload.message)
console.log(action2.payload.message);
}

function reducer(state, action) {
Expand Down

0 comments on commit 5216925

Please sign in to comment.