Options
All
  • Public
  • Public/Protected
  • All
Menu

pyro-config - v0.1.0

Index

Type aliases

Attribute

ConfigType

ConfigType<C, S>: {}

Type parameters

Type declaration

ConfigValue

CustomConfigValue

CustomConfigValue: (value: string | null | undefined, attribute: CustomAttribute) => ReturnType<SimpleConfigValue>

Type declaration

Schema

Schema<C>: {}

Type parameters

Type declaration

SimpleConfigValue

SimpleConfigValue: StringConstructor | NumberConstructor | BooleanConstructor

Functions

CustomParser

  • CustomParser(value: string | null | undefined): string
  • Parameters

    • value: string | null | undefined

    Returns string

parse

  • parse(value: string | null | undefined, attribute: Attribute): any

parseBooleanValue

  • parseBooleanValue(value: string | null | undefined, attribute: BooleanAttribute): boolean

parseNumberValue

  • parseNumberValue<T>(value: string | null | undefined, attribute: T): number | null

parseStringValue

  • parseStringValue<T>(value: string | null | undefined, attribute: T): string | null

Object literals

Const testConfigSchema

testConfigSchema: object

booleanValue

booleanValue: object

description

description: string = "Test description"

type

type: BooleanConstructor = Boolean

customValue

customValue: object

description

description: string = "Test description"

type

type: CustomParser = CustomParser

numberValue

numberValue: object

description

description: string = "Test description"

type

type: NumberConstructor = Number

stringValue

stringValue: object

description

description: string = "Test description"

type

type: StringConstructor = String

Generated using TypeDoc