Skip to content

Commit de2a074

Browse files
committed
Move to ES6 module definition style.
1 parent dab0fb7 commit de2a074

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

field/field-test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// From https://github.com/jprichardson/field/blob/e968fd979ba1a06e35571695ddfdad513e516eae/README.md
22

33
/// <reference path="field.d.ts" />
4+
import * as field from 'field';
45

56
// get
67

field/field.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Definitions by: Leo Liang <https://github.com/aleung/DefinitelyTyped>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
55

6-
declare module field {
6+
declare module 'field' {
77
export function get(topObj: any, fields: string): any;
88
export function set(topObj: any, fields: string, value: any): any;
99
}

0 commit comments

Comments
 (0)