Skip to content

Commit

Permalink
chore: revert default TDate change
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Apr 15, 2024
1 parent d4921d8 commit f909381
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function expectAssignable<T, T2 extends T = T> (value: T2): void {}

describe('date.ts', () => {
// Cannot define properties that don't exist in date-io
expectAssignable<DateAdapter>({} as IUtils<Date, string>)
expectAssignable<DateAdapter>({} as IUtils<Date>)
// @ts-expect-error Can implement a subset of date-io
expectAssignable<IUtils<Date>>({} as DateAdapter)

Expand Down
2 changes: 1 addition & 1 deletion packages/vuetify/src/composables/date/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface DateInstance extends DateModule.InternalAdapter {
export namespace DateModule {
interface Adapter {}

export type InternalAdapter = {} extends Adapter ? DateAdapter<Date> : Adapter
export type InternalAdapter = {} extends Adapter ? DateAdapter : Adapter
}

export type InternalDateOptions = {
Expand Down

0 comments on commit f909381

Please sign in to comment.