Create new type definition for 'ms' (#4057)
* Create new type definition for 'ms' * Follow lint
This commit is contained in:
committed by
syuilo
parent
9c106022ae
commit
da1a238be3
Vendored
+12
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user