fix(tz-format): add offset parameter (#11765)

This commit is contained in:
Sam Verschueren
2016-10-06 23:41:28 +09:00
committed by Masahiro Wakame
parent 7a69d8a56f
commit cc35859196
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -3,4 +3,6 @@
import * as format from 'tz-format';
format();
format(1);
format(new Date());
format(new Date(), 1);
+1 -1
View File
@@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "tz-format" {
function format(date?: Date): string;
function format(date?: Date | number, offset?: number): string;
namespace format { }
export = format;
}