Deprecate OpaqueToPointers for now

https://github.com/theatre-js/theatre/pull/118#discussion_r846628039
This commit is contained in:
Aria Minaei 2022-04-09 17:08:08 +02:00
parent c9959b9541
commit bd8999f0f2
2 changed files with 1 additions and 6 deletions

View file

@ -17,6 +17,6 @@ export {default as iterateAndCountTicks} from './derivations/iterateAndCountTick
export {default as iterateOver} from './derivations/iterateOver' export {default as iterateOver} from './derivations/iterateOver'
export {default as prism} from './derivations/prism/prism' export {default as prism} from './derivations/prism/prism'
export {default as pointer, getPointerParts, isPointer} from './pointer' 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 Ticker} from './Ticker'
export {default as PointerProxy} from './PointerProxy' export {default as PointerProxy} from './PointerProxy'

View file

@ -7,10 +7,6 @@ type PointerMeta = {
path: (string | number)[] path: (string | number)[]
} }
const symbolForUnpointableTypes = Symbol()
export type OpaqueToPointers = {[symbolForUnpointableTypes]: true}
export type UnindexableTypesForPointer = export type UnindexableTypesForPointer =
| number | number
| string | string
@ -19,7 +15,6 @@ export type UnindexableTypesForPointer =
| void | void
| undefined | undefined
| Function // eslint-disable-line @typescript-eslint/ban-types | Function // eslint-disable-line @typescript-eslint/ban-types
| OpaqueToPointers
export type UnindexablePointer = { export type UnindexablePointer = {
[K in $IntentionalAny]: Pointer<undefined> [K in $IntentionalAny]: Pointer<undefined>