-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from github/add-typescript-definition-file
Add typescript definition file
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
declare class ExtendedTimeElement extends HTMLElement { | ||
readonly date: Date | undefined | ||
getFormattedTitle(): string | undefined | ||
getFormattedDate(): string | undefined | ||
} | ||
|
||
export class LocalTimeElement extends ExtendedTimeElement { | ||
getFormattedDate(): string | undefined | ||
} | ||
|
||
export class RelativeTimeElement extends ExtendedTimeElement { | ||
getFormattedDate(): string | undefined | ||
} | ||
|
||
export class TimeAgoElement extends ExtendedTimeElement { | ||
getFormattedDate(): string | undefined | ||
} | ||
|
||
export class TimeUntilElement extends ExtendedTimeElement { | ||
getFormattedDate(): string | undefined | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters