From e28651b949c88a18681f7164ebfe334759e5e48d Mon Sep 17 00:00:00 2001 From: "Chabib N." Date: Fri, 12 Jun 2026 15:43:24 +0700 Subject: [PATCH 1/3] fix: update type definitions --- src/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 84a0d3c..43aad09 100644 --- a/src/index.ts +++ b/src/index.ts @@ -208,7 +208,12 @@ type SourceValue = false | ResolvableValue | ContextualValue /** * @internal */ -type ResolvableValue = null | T | (() => T) | readonly T[] +type ResolvableValue = + | T + | readonly T[] + | (() => T | null | undefined) + | null + | undefined /** * @internal From d914cd1cb0c9f07c7bb203bcb8156051e61c75c3 Mon Sep 17 00:00:00 2001 From: "Chabib N." Date: Fri, 12 Jun 2026 15:44:02 +0700 Subject: [PATCH 2/3] version(patch): 0.7.21 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 235139c..23cf545 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vicinage", - "version": "0.7.20", + "version": "0.7.21", "description": "Type-safe and zero-runtime UI styling, right in the markup.", "license": "MIT", "repository": { From 0ab4f904d8a14ab659fb60ebfef8775872ac934b Mon Sep 17 00:00:00 2001 From: "Chabib N." Date: Fri, 12 Jun 2026 15:53:08 +0700 Subject: [PATCH 3/3] chore: extract types --- etc/vicinage.api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/vicinage.api.md b/etc/vicinage.api.md index ce71f2e..407c74e 100644 --- a/etc/vicinage.api.md +++ b/etc/vicinage.api.md @@ -161,7 +161,7 @@ export type ~PseudoElementKey = Extract | Extract> | `${~ParameterizedPseudoElementKey}(${string})`, ~CommonProperties | ~CustomProperties | ~CompiledProperties>>; // @internal (undocumented) -export type ~ResolvableValue = null | T | (() => T) | readonly T[]; +export type ~ResolvableValue = T | readonly T[] | (() => T | null | undefined) | null | undefined; // @internal (undocumented) export type ~SourceValue = false | ~ResolvableValue | ~ContextualValue;