From 2ffb94ed98613c1f02b8f57066193287bed6741c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Wed, 19 Jan 2022 15:22:41 +0100 Subject: [PATCH] [FIX] reactivity: export Reactive type --- src/index.ts | 3 +++ src/reactivity.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6bfd0c29..a73587fe 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,6 +14,9 @@ import { } from "./blockdom"; import { mainEventHandler } from "./component/handler"; import { Portal } from "./portal"; +export type { Reactive } from "./reactivity"; + + config.shouldNormalizeDom = false; config.mainEventHandler = mainEventHandler; diff --git a/src/reactivity.ts b/src/reactivity.ts index 1f3660e6..e3b00e44 100644 --- a/src/reactivity.ts +++ b/src/reactivity.ts @@ -9,7 +9,7 @@ const KEYCHANGES = Symbol("Key changes"); type ObjectKey = string | number | symbol; type Target = object; type Callback = () => void; -type Reactive = T & { +export type Reactive = T & { [TARGET]: any; };