Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
add test and ISO regexp to .d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
giogonzo committed Sep 24, 2019
1 parent 09cd69d commit f93352c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
declare module 'local-date' {
export class LocalDate extends Date {}
export class LocalDateTime extends Date {}
export class LocalDate extends Date {
static ISO_DATE_FORMAT: RegExp;
static test(iso: string): boolean;
}
export class LocalDateTime extends Date {
static ISO_DATE_TIME_FORMAT: RegExp;
static test(iso: string): boolean;
}
}

0 comments on commit f93352c

Please sign in to comment.