Skip to content

Commit

Permalink
Move index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
unional committed Oct 27, 2016
1 parent cd45da8 commit 26a7bf3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.6.1",
"description": "A human-friendly standard for Flux action objects",
"main": "lib/index.js",
"typings": "index.d.ts",
"typings": "src/index.d.ts",
"files": [
"lib"
],
Expand Down
6 changes: 6 additions & 0 deletions index.d.ts → src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ export interface FluxStandardAction {
*/
export type FSA = FluxStandardAction;

/**
* Returns `true` if `action` is FSA compliant.
*/
export function isFSA(action: any): boolean;

/**
* Returns `true` if `action` is FSA compliant error.
*/
export function isError(action: any): boolean;

0 comments on commit 26a7bf3

Please sign in to comment.