typescript(option): refactor: no longer using the useless some symbol
typescript(option): typescript(option): The symbol was never actually used so declaring it is good enough Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
f46ef3dbf8
commit
445bab939e
|
@ -1,4 +1,3 @@
|
|||
export const identity = <T>(v: T) => v
|
||||
|
||||
export const some = Symbol('some')
|
||||
export const none = Symbol('none')
|
||||
|
|
|
@ -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<void, typeof none>
|
||||
type Some<T> = Brand<T, typeof some>
|
||||
|
||||
|
|
Loading…
Reference in a new issue