Skip to content

Commit 9eb8d46

Browse files
committed
PropValue: + undefined
fixes vanjs-org#6
1 parent e604426 commit 9eb8d46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/mini-van.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type StateView<T> = Readonly<State<T>>
99

1010
export type Primitive = string | number | boolean | bigint
1111

12-
export type PropValue = Primitive | ((e: any) => void) | null
12+
export type PropValue = Primitive | ((e: any) => void) | null | undefined
1313

1414
export type Props = Record<string, PropValue | StateView<PropValue> | (() => PropValue)>
1515

src/van-plate.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type StateView<T> = Readonly<State<T>>
99

1010
export type Primitive = string | number | boolean | bigint
1111

12-
export type PropValue = Primitive | ((e: any) => void) | null
12+
export type PropValue = Primitive | ((e: any) => void) | null | undefined
1313

1414
export type Props = Record<string, PropValue | StateView<PropValue> | (() => PropValue)>
1515

0 commit comments

Comments
 (0)