From 001c50c13d69db8fab63f0da69aa30d3a8b51ca3 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Fri, 2 Jul 2021 20:47:25 +0200 Subject: [PATCH] New: Improve the type of val() --- packages/dataverse/src/Atom.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/dataverse/src/Atom.ts b/packages/dataverse/src/Atom.ts index af7945a..698ec6a 100644 --- a/packages/dataverse/src/Atom.ts +++ b/packages/dataverse/src/Atom.ts @@ -227,6 +227,8 @@ export const val =

( ? T : P extends IDerivation ? T + : P extends undefined | null + ? P : unknown => { if (isPointer(pointerOrDerivationOrPlainValue)) { return valueDerivation(