[FIX] reactivity: export Reactive type

This commit is contained in:
Géry Debongnie
2022-01-19 15:22:41 +01:00
committed by aab-odoo
parent 6a15874d23
commit 2ffb94ed98
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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;
+1 -1
View File
@@ -9,7 +9,7 @@ const KEYCHANGES = Symbol("Key changes");
type ObjectKey = string | number | symbol;
type Target = object;
type Callback = () => void;
type Reactive<T extends Target = Target> = T & {
export type Reactive<T extends Target = Target> = T & {
[TARGET]: any;
};