typescript(option): feat: added the 'oneOf' helper
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
6a8191cc34
commit
470574fdad
4 changed files with 82 additions and 0 deletions
typescript/option/test
|
@ -1,3 +1,4 @@
|
|||
import { constantly } from '@thi.ng/compose'
|
||||
import { Some } from '../src'
|
||||
|
||||
// general value to pass around
|
||||
|
@ -5,3 +6,5 @@ export const x = Symbol('x')
|
|||
|
||||
// same as x but for some
|
||||
export const someX = Some(x)
|
||||
|
||||
export const alwaysSomeX = constantly(someX)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue