mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Merge pull request #7504 from aleung/field-fix
Move 'field' to ES6 module definition style.
This commit is contained in:
commit
bcf61d5fe4
@ -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
2
field/field.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user