diff --git a/src/none.ts b/src/none.ts index f648f51..83c6b60 100644 --- a/src/none.ts +++ b/src/none.ts @@ -51,4 +51,5 @@ export default class None extends Maybe { asNullable(): T | null { return null; } } -export const none: () => Maybe = None.none; +const _noneSingleton = None.none(); +export const none = (): Maybe => _noneSingleton;