From 72ada325beb038f41b6b02f2a0d9e6c24d84248f Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Sat, 9 Apr 2022 17:09:51 +0200 Subject: [PATCH] Clarify the remark about the `Pointer` type https://github.com/theatre-js/theatre/pull/118#discussion_r846628315 --- packages/dataverse/src/pointer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dataverse/src/pointer.ts b/packages/dataverse/src/pointer.ts index 9532923..39baeae 100644 --- a/packages/dataverse/src/pointer.ts +++ b/packages/dataverse/src/pointer.ts @@ -41,7 +41,7 @@ export type PointerType = { * ```ts * declare function expectAnyPointer(pointer: Pointer): void * - * expectAnyPointer(null as Pointer<{}>) // doesn't work + * expectAnyPointer(null as Pointer<{}>) // this shows as a type error because Pointer<{}> is not assignable to Pointer, even though it should * ``` * * The current solution is to just avoid using `any` with pointer-related code (or type-test it well).