From bd8999f0f2d075415003bc5de6a13c5c2d6fe529 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Sat, 9 Apr 2022 17:08:08 +0200 Subject: [PATCH] Deprecate `OpaqueToPointers` for now https://github.com/theatre-js/theatre/pull/118#discussion_r846628039 --- packages/dataverse/src/index.ts | 2 +- packages/dataverse/src/pointer.ts | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/dataverse/src/index.ts b/packages/dataverse/src/index.ts index d3773f9..383a638 100644 --- a/packages/dataverse/src/index.ts +++ b/packages/dataverse/src/index.ts @@ -17,6 +17,6 @@ export {default as iterateAndCountTicks} from './derivations/iterateAndCountTick export {default as iterateOver} from './derivations/iterateOver' export {default as prism} from './derivations/prism/prism' export {default as pointer, getPointerParts, isPointer} from './pointer' -export type {Pointer, PointerType, OpaqueToPointers} from './pointer' +export type {Pointer, PointerType} from './pointer' export {default as Ticker} from './Ticker' export {default as PointerProxy} from './PointerProxy' diff --git a/packages/dataverse/src/pointer.ts b/packages/dataverse/src/pointer.ts index 8b6bb45..9532923 100644 --- a/packages/dataverse/src/pointer.ts +++ b/packages/dataverse/src/pointer.ts @@ -7,10 +7,6 @@ type PointerMeta = { path: (string | number)[] } -const symbolForUnpointableTypes = Symbol() - -export type OpaqueToPointers = {[symbolForUnpointableTypes]: true} - export type UnindexableTypesForPointer = | number | string @@ -19,7 +15,6 @@ export type UnindexableTypesForPointer = | void | undefined | Function // eslint-disable-line @typescript-eslint/ban-types - | OpaqueToPointers export type UnindexablePointer = { [K in $IntentionalAny]: Pointer