diff --git a/typescript/option/src/types.ts b/typescript/option/src/types.ts index ae443bb..ab6120b 100644 --- a/typescript/option/src/types.ts +++ b/typescript/option/src/types.ts @@ -6,5 +6,8 @@ type Some = Brand export type Option = Some | None -export const None = { __brand: none } as None +export const None = { + __brand: none, + toString: () => 'None' +} as None export const Some = (value: T) => value as Option