Hyperlinkv0.8.0-beta.28

Config

Config.numberfunctioneffect/Config.ts:947
(name?: string): Config<number>

Creates a config for a numeric value (including NaN, Infinity).

When to use

Use when you need config input to accept JavaScript's full number domain, including NaN and infinities, rather than reject non-finite values.

Details

Shortcut for Config.schema(Schema.Number, name).

constructorsfiniteint
Source effect/Config.ts:9473 lines
export function number(name?: string) {
  return schema(Schema.Number, name)
}