Move to ES6 module definition style.

This commit is contained in:
Leo Liang
2016-01-06 15:23:15 +08:00
parent dab0fb7cb7
commit de2a074c56
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
// From https://github.com/jprichardson/field/blob/e968fd979ba1a06e35571695ddfdad513e516eae/README.md
/// <reference path="field.d.ts" />
import * as field from 'field';
// get

2
field/field.d.ts vendored
View File

@@ -3,7 +3,7 @@
// Definitions by: Leo Liang <https://github.com/aleung/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module field {
declare module 'field' {
export function get(topObj: any, fields: string): any;
export function set(topObj: any, fields: string, value: any): any;
}