Skip to content

Commit

Permalink
Add "typings" to package.json (#4)
Browse files Browse the repository at this point in the history
Fix TypeScript file & add to package.json
  • Loading branch information
mohsen1 authored and winterbe committed Oct 4, 2016
1 parent bcbfed7 commit fe49dcc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@
"log",
"debug",
"state management"
]
],
"typings": "lib/index.d.ts"
}
16 changes: 7 additions & 9 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
declare module "mobx-logger" {
export interface IMobXLoggerConfig {
predicate?: () => boolean,
action?: boolean;
reaction?: boolean;
transaction?: boolean;
compute?: boolean;
}
export function enableLogging(config: IMobXLoggerConfig): void
export interface IMobXLoggerConfig {
predicate?: () => boolean,
action?: boolean;
reaction?: boolean;
transaction?: boolean;
compute?: boolean;
}
export function enableLogging(config: IMobXLoggerConfig): void

0 comments on commit fe49dcc

Please sign in to comment.