From 9eb8d46f021be85e12087c69acb4e08b444a49e2 Mon Sep 17 00:00:00 2001 From: Brian Takita Date: Mon, 30 Oct 2023 03:31:34 -0400 Subject: [PATCH] PropValue: + undefined fixes https://github.com/vanjs-org/mini-van/issues/6 --- src/mini-van.d.ts | 2 +- src/van-plate.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)>