Skip to content

Commit 9c9b63a

Browse files
author
Laurynas Grigutis
committed
fix: DeepPartial type issues
1 parent 15ece2d commit 9c9b63a

File tree

1 file changed

+4
-4
lines changed
  • packages/tailwindcss-language-service/src

1 file changed

+4
-4
lines changed

packages/tailwindcss-language-service/src/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export type DeepPartial<T> = {
2-
[P in keyof T]?: T[P] extends (infer U)[]
3-
? U[]
4-
: T[P] extends (...args: any) => any
5-
? T[P] | undefined
2+
[P in keyof T]?: T[P] extends ((...args: any) => any) | ReadonlyArray<any> | Date
3+
? T[P]
4+
: T[P] extends (infer U)[]
5+
? U[]
66
: T[P] extends object
77
? DeepPartial<T[P]>
88
: T[P]

0 commit comments

Comments
 (0)