Documentation / @andrew_l/app / PropOptions
Interface: PropOptions<T>
Declaration for a single typed app prop.
Type Parameters
T
T = any
Properties
alias?
optionalalias?:string
default?
optionaldefault?: () =>InferPropType<T>
Returns
InferPropType<T>
description?
optionaldescription?:string
enum?
optionalenum?:string[]
env?
optionalenv?:string|string[]
parser?
optionalparser?: (value) =>InferPropType<T>
Parameters
value
string
Returns
InferPropType<T>
required?
optionalrequired?:boolean
type
type:
PropType<T> |null