From a60d9aa4240c16f69c089ebf2964517090149e61 Mon Sep 17 00:00:00 2001 From: Zhiyuan Wang Date: Wed, 4 Nov 2015 07:18:29 +0800 Subject: [PATCH] fix interface name --- bytes/bytes.d.ts | 10 +++------- ms/ms.d.ts | 6 +----- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/bytes/bytes.d.ts b/bytes/bytes.d.ts index d9946edf2..0d8a63cf7 100644 --- a/bytes/bytes.d.ts +++ b/bytes/bytes.d.ts @@ -5,10 +5,6 @@ declare module 'bytes' { - interface IBytesFormatOptions { - thousandsSeparator: string - } - /** *Convert the given value in bytes into a string. * @@ -19,7 +15,7 @@ declare module 'bytes' { * * @returns {string} */ - function bytes(value: number, options?: IBytesFormatOptions): string; + function bytes(value: number, options?: { thousandsSeparator: string }): string; /** *Parse string to an integer in bytes. @@ -38,10 +34,10 @@ declare module 'bytes' { * it is rounded. * * @param {number} value - * @param {IBytesFormatOptions} [options] + * @param {BytesFormatOptions} [options] */ - function format(value: number, options?: IBytesFormatOptions): string; + function format(value: number, options?: { thousandsSeparator: string }): string; /** * Just return the input number value. diff --git a/ms/ms.d.ts b/ms/ms.d.ts index 5a7c67add..fe26e03e3 100644 --- a/ms/ms.d.ts +++ b/ms/ms.d.ts @@ -5,10 +5,6 @@ declare module 'ms' { - interface IMSOptions { - long: boolean - } - /** * Short/Long format for `value`. * @@ -16,7 +12,7 @@ declare module 'ms' { * @param {{long: boolean}} options * @return {String} */ - function ms(value: number, options?: IMSOptions): string; + function ms(value: number, options?: { long: boolean }): string; /** * Parse the given `value` and return milliseconds.