mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
fix(tz-format): add offset parameter (#11765)
This commit is contained in:
committed by
Masahiro Wakame
parent
7a69d8a56f
commit
cc35859196
@@ -3,4 +3,6 @@
|
||||
import * as format from 'tz-format';
|
||||
|
||||
format();
|
||||
format(1);
|
||||
format(new Date());
|
||||
format(new Date(), 1);
|
||||
|
||||
2
tz-format/tz-format.d.ts
vendored
2
tz-format/tz-format.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user