Skip to content

Commit

Permalink
types(TS): add window declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Sep 12, 2019
1 parent 840ab9e commit e6a89ca
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@ export class TimeAgoElement extends ExtendedTimeElement {
export class TimeUntilElement extends ExtendedTimeElement {
getFormattedDate(): string | undefined
}

declare global {
interface Window {
LocalTimeElement: typeof LocalTimeElement;
RelativeTimeElement: typeof RelativeTimeElement;
TimeAgoElement: typeof TimeAgoElement;
TimeUntilElement: typeof TimeUntilElement;
}
}

0 comments on commit e6a89ca

Please sign in to comment.