Create new type definition for 'ms' (#4057)

* Create new type definition for 'ms'

* Follow lint
This commit is contained in:
Acid Chicken (硫酸鶏)
2019-02-02 00:16:27 +09:00
committed by syuilo
parent 9c106022ae
commit da1a238be3
14 changed files with 24 additions and 13 deletions

12
src/@types/ms.d.ts vendored Normal file
View 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;
}