diff --git a/typescript/option/src/types.ts b/typescript/option/src/types.ts index 016853e..005e415 100644 --- a/typescript/option/src/types.ts +++ b/typescript/option/src/types.ts @@ -1,4 +1,4 @@ -import { none } from './internals' +import { none, identity } from './internals' import { Brand } from 'utility-types' // This is never actually used outside of typing so we can just declare it @@ -13,4 +13,4 @@ export const None = { __brand: none, toString: () => 'None' } as None -export const Some = (value: T) => value as Option +export const Some = identity as (value: T) => Option