diff --git a/typescript/option/src/internals.ts b/typescript/option/src/internals.ts index 0e16212..54e7cd7 100644 --- a/typescript/option/src/internals.ts +++ b/typescript/option/src/internals.ts @@ -1,4 +1,3 @@ export const identity = (v: T) => v -export const some = Symbol('some') export const none = Symbol('none') diff --git a/typescript/option/src/types.ts b/typescript/option/src/types.ts index ab6120b..016853e 100644 --- a/typescript/option/src/types.ts +++ b/typescript/option/src/types.ts @@ -1,6 +1,9 @@ -import { some, none } from './internals' +import { none } from './internals' import { Brand } from 'utility-types' +// This is never actually used outside of typing so we can just declare it +declare const some: unique symbol + type None = Brand type Some = Brand