@skyleague/axioms
Index
Algorithm
Arbitrary
- ArrayGenerator
- CharGenerator
- DatetimeGenerator
- FloatGenerator
- IntegerGenerator
- JsonGenerator
- NaturalConstraints
- PrimitiveGenerator
- PropertyKeyGenerator
- UnknownGenerator
- allOf
- alpha
- alphaChar
- alphaNumeric
- alphaNumericChar
- array
- ascii
- asciiChar
- base64
- base64Char
- boolean
- char
- constant
- constants
- date
- datetime
- domain
- element
- float
- hex
- hexChar
- integer
- ipv4
- ipv6
- json
- lowerAlpha
- lowerAlphaChar
- lowerAlphaNumeric
- lowerAlphaNumericChar
- natural
- nullable
- object
- oneOf
- oneOfWeighted
- optional
- partial
- pattern
- primitive
- propertyKey
- random
- record
- set
- string
- subdomain
- subsuper
- symbol
- tuple
- ulidArbitrary
- unknown
- uri
- utf16
- utf16Char
- utf16Surrogate
- utf16SurrogateChar
- uuidv4Arbitrary
Array
Async
Classes
Combinators
- asMaybe
- asTry
- eitherAsValue
- eitherToError
- failure
- just
- left
- leftToMaybe
- mapLeft
- mapLefts
- mapRight
- mapRights
- mapTry
- maybeAsValue
- maybeToLeft
- maybeToRight
- recoverTry
- right
- rightToMaybe
- swapEither
- transformTry
- tryAsValue
- tryFromEither
- tryToEither
- tryToError
- tryToMaybe
- whenJust
- whenJusts
- whenLeft
- whenLefts
- whenNothing
- whenRight
- whenRights
Crypto
Either
Filesystem
Functions
- arbitraryContext
- arrayWith
- asyncForAll
- attempt
- bfs
- curry
- defer
- deterministicBoolean
- deterministicFloat
- deterministicInteger
- dfsPostOrder
- dfsPreOrder
- dict
- dropWhile
- ensureValues
- evaluate
- evaluateTree
- expandTree
- filterArbitrary
- filterWithMemory
- foldl1
- forAll
- identity
- isGenerator
- isGeneratorFunction
- isIterable
- isObject
- itrampoline
- lazy
- memoizeArbitrary
- memoizeAttributes
- memoizeGetters
- omitUndefined
- scanl1
- showTree
- sortStrings
- thrown
- toGenerator
- toISO8601Date
- toTraversable
- toTraverser
- trampoline
- unfoldTree
- weightedChoice
- zip
- zipWith
Generators
Guards
Interfaces
- AlphaGenerator
- AlphaNumericGenerator
- Arbitrary
- ArbitraryContext
- DateGenerator
- Deferred
- Dependent
- Falsified
- FalsifyOptions
- ForallOptions
- InfiniteGenerator
- Integrated
- Left
- Mulberry32Generator
- OptionalGenerator
- PeekableGenerator
- QueueGenerator
- RandomGenerator
- RecordGenerator
- Right
- StackGenerator
- StringConstraints
- Traversable
- Xoroshiro128plusGenerator
Iterators
Maybe
Object
Random
Sets
Type Aliases
- Add
- ArbitrarySize
- AsyncMappable
- AsyncTraversable
- AsyncTraverser
- BiasedArbitraryContext
- BuildTuple
- ComparablePrimitive
- Curried
- DeepMutable
- DeepPartial
- DefinedKeys
- Dict
- Failure
- IsUnion
- Item
- Json
- Just
- KeyOf
- KeysOfType
- Mappable
- Maybe
- MaybePartial
- MemoizeAttributes
- Memoized
- Mutable
- NoNullableFields
- NoUndefinedFields
- Nothing
- NullableFields
- OptionalKeys
- Promisable
- RecurrentGenerator
- RelaxedPartial
- RequireKeys
- RequiredKeys
- Simplify
- SimplifyOnce
- Subtract
- Success
- Tail
- TraversableItem
- Traverser
- Try
- UndefinedFields
- UnionToIntersection
- ValueOf
Types
Variables
Arbitrary
UnknownGenerator
Either
Either
Type parameters
- L
- R
Type Aliases
Add
Type parameters
- A: number
- B: number
ArbitrarySize
AsyncMappable
Type parameters
- T
- R = unknown
AsyncTraversable
Type parameters
- T
- R = unknown
AsyncTraverser
Type parameters
- T
- R = unknown
BiasedArbitraryContext
BuildTuple
Type parameters
- L: number
- S = unknown
- T: unknown[] = []
ComparablePrimitive
Curried
Type parameters
- A: unknown[]
- R
Type declaration
Type parameters
- L: UnconsArgs<A, number>[init]
Parameters
rest...args: L
Returns 0 extends L[length] ? never : 0 extends UnconsArgs<A, L[length]>[tail][length] ? R : Curried<UnconsArgs<A, L[length]>[tail], R>
DeepMutable
Type parameters
- T
DeepPartial
Type parameters
- T
DefinedKeys
Type parameters
- T
- K: keyof T
Dict
Type parameters
- T = unknown
Failure
IsUnion
Type parameters
- T
Item
Type parameters
- T
Json
Just
Type parameters
- T
KeyOf
Type parameters
- T
KeysOfType
Type parameters
- T
- U
Mappable
Type parameters
- T
- R = unknown
Maybe
Type parameters
- T
MaybePartial
Type parameters
- T
MemoizeAttributes
Type parameters
- T: Record<PropertyKey, () => unknown>
Memoized
A memoized function.
Type parameters
- Fn: Function
Mutable
Type parameters
- T
NoNullableFields
Type parameters
- T
NoUndefinedFields
Type parameters
- T
Nothing
NullableFields
Type parameters
- T
OptionalKeys
Type parameters
- T
Promisable
Type parameters
- T
RecurrentGenerator
Type parameters
- R
RelaxedPartial
Type parameters
- T
RequireKeys
Type parameters
- T
- K: PropertyKey
RequiredKeys
Type parameters
- T
Simplify
Type parameters
- T
SimplifyOnce
Type parameters
- T
Subtract
Type parameters
- A: number
- B: number
Success
Type parameters
- T
Tail
Type parameters
- T: readonly unknown[]
TraversableItem
Type parameters
- T
Traverser
Type parameters
- T
- R = unknown
Try
Type parameters
- T
UndefinedFields
Type parameters
- T
UnionToIntersection
Type parameters
- U
ValueOf
Type parameters
- T
Types
AsyncConstExpr
A type that represents either a constant or a constant function.
Type parameters
- T = unknown
The constant type.
ConstExpr
A type that represents either a constant or a constant function.
Type parameters
- T = unknown
The constant type.
Variables
constNothing
constThrown
constdeterministic
Type declaration
boolean: (...seed: unknown[]) => boolean
Parameters
rest...seed: unknown[]
Returns boolean
float: (...seed: unknown[]) => number
Parameters
rest...seed: unknown[]
Returns number
integer: (...seed: unknown[]) => number
Parameters
rest...seed: unknown[]
Returns number
Describes how unknown values are allowed to be generated.