Skip to main content

Type Alias: ThrownCode

ThrownCode = BuiltInThrownCode | string & object

Defined in: model/errors.ts:99

Any thrown code: one the library ships, or one a consumer mints on a subclass of their own. The (string & {}) tail is the same open shape ReportCode and FieldKey already keep — the shipped codes autocomplete on switch (error.code), and a consumer's own code still compiles.