Create new type definition for 'ms' (#4057)
* Create new type definition for 'ms' * Follow lint
This commit is contained in:
parent
9c106022ae
commit
da1a238be3
14 changed files with 24 additions and 13 deletions
12
src/@types/ms.d.ts
vendored
Normal file
12
src/@types/ms.d.ts
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
declare module 'ms' {
|
||||
interface IMSOptions {
|
||||
long: boolean;
|
||||
}
|
||||
|
||||
function ms(value: string): number;
|
||||
function ms(value: number, options?: IMSOptions): string;
|
||||
|
||||
namespace ms {} // Hack
|
||||
|
||||
export = ms;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue