Skip to content

Commit

Permalink
Declare the dataAdapter since it will be available at runtime if some…
Browse files Browse the repository at this point in the history
…one overrides it
  • Loading branch information
LeeLenaleee committed Feb 5, 2021
1 parent affb4e3 commit 998ad29
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/adapters.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ export interface DateAdapter {
endOf(timestamp: number, unit: TimeUnit | 'isoWeek'): number;
}

declare const DateAdapter: {
prototype: DateAdapter;
new(options: any): DateAdapter;
};

export const _adapters: {
_date: DateAdapter;
};

0 comments on commit 998ad29

Please sign in to comment.