Hyperlinkv0.8.0-beta.28

Config

Config.intfunctioneffect/Config.ts:989
(name?: string): Config<number>

Creates a config for an integer value. Rejects floats.

When to use

Use to read a numeric config value that must be an integer.

Details

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

constructorsnumberport
Source effect/Config.ts:9893 lines
export function int(name?: string) {
  return schema(Schema.Int, name)
}