diff --git a/src/mini-van.d.ts b/src/mini-van.d.ts index 0c35e4c..9cdfa36 100644 --- a/src/mini-van.d.ts +++ b/src/mini-van.d.ts @@ -9,7 +9,7 @@ export type StateView = Readonly> export type Primitive = string | number | boolean | bigint -export type PropValue = Primitive | ((e: any) => void) | null +export type PropValue = Primitive | ((e: any) => void) | null | undefined export type Props = Record | (() => PropValue)> diff --git a/src/van-plate.d.ts b/src/van-plate.d.ts index a544379..9418bfc 100644 --- a/src/van-plate.d.ts +++ b/src/van-plate.d.ts @@ -9,7 +9,7 @@ export type StateView = Readonly> export type Primitive = string | number | boolean | bigint -export type PropValue = Primitive | ((e: any) => void) | null +export type PropValue = Primitive | ((e: any) => void) | null | undefined export type Props = Record | (() => PropValue)>