From 381bd4deb41f38f1b7066d2355492094ed89368f Mon Sep 17 00:00:00 2001 From: benStre Date: Wed, 6 Nov 2024 13:13:43 +0100 Subject: [PATCH] add global type declaration for Ref --- runtime/pointers.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/runtime/pointers.ts b/runtime/pointers.ts index 9804dd7..208fb6b 100644 --- a/runtime/pointers.ts +++ b/runtime/pointers.ts @@ -936,6 +936,14 @@ export type Ref> = ObjectRef<_C> // collapsed object ) +/** + * global type definitions + */ +type _Ref = Ref +declare global { + type Ref = _Ref +} + /** * @deprecated use Ref */