typescript(option): fix: Fixed the name of isNone
typescript(option): typescript(option): Previously the name was isNothing bu isNone makes more sense typescript(option): typescript(option): BREAKING CHANGE: Changed the name of isNothing to isNone Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
d02031e416
commit
f46ef3dbf8
|
@ -1,4 +1,4 @@
|
||||||
import { Option } from '../types'
|
import { Option } from '../types'
|
||||||
import { none } from '../internals'
|
import { none } from '../internals'
|
||||||
|
|
||||||
export const isNothing = <T>(option: Option<T>) => option.__brand === none
|
export const isNone = <T>(option: Option<T>) => option.__brand === none
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Option } from '../types'
|
import { Option } from '../types'
|
||||||
import { isNothing } from './isNone'
|
import { isNone } from './isNone'
|
||||||
|
|
||||||
export const isSome = <T>(option: Option<T>) => !isNothing(option)
|
export const isSome = <T>(option: Option<T>) => !isNone(option)
|
||||||
|
|
Loading…
Reference in a new issue