Merge pull request #7504 from aleung/field-fix

Move 'field' to ES6 module definition style.
This commit is contained in:
Horiuchi_H 2016-01-07 12:34:16 +09:00
commit bcf61d5fe4
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;
}