Add typing for field

This commit is contained in:
Leo Liang
2016-01-04 15:56:46 +08:00
parent dc9dabe74a
commit d75d2c9629
2 changed files with 37 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
// Type definitions for field 1.0.1
// Project: https://www.npmjs.com/package/field
// Definitions by: Leo Liang <https://github.com/aleung/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module field {
export function get(topObj: any, fields: string): any;
export function set(topObj: any, fields: string, value: any): any;
}