Type alias SpecTypeOrDict

SpecTypeOrDict: SpecType | Record<string, SpecType>

A type representing either a SpecType or a mapping between string keys and SpecType's.

Example

const names: SpecTypeOrDict = ['John', 'Jane']; // i.e. `string[]`
const ages: SpecTypeOrDict = { John: 42, Jane: 43 }; // i.e. `{ [key: string]: number }`

Generated using TypeDoc