tryError Documentation

Interface: TrySyncOptions
Interface

Defined in: [sync.ts:13](https://github.com/oconnorjohnson/try-error/blob/e3ae0308069a4fba073f4543d527ad76373db795/src/sync.ts#L13) Options for trySync function

tryError API Documentation v0.0.1-alpha.1


tryError API Documentation / TrySyncOptions

Interface: TrySyncOptions

Defined in: sync.ts:13

Options for trySync function

Properties

context?

optional context: Record<string, unknown>;

Defined in: sync.ts:22

Additional context to include in error


errorType?

optional errorType: string;

Defined in: sync.ts:17

Custom error type to use instead of automatic detection


message?

optional message: string;

Defined in: sync.ts:27

Custom error message