tryError Documentation

Function: makeLazy()
Function

```ts function makeLazy<E>(error, lazyProps): E; ``` Defined in: [lazy.ts:75](https://github.com/oconnorjohnson/try-error/blob/e3ae0308069a4fba073f4543d527ad76373db795/src/lazy.ts#L75) Wrap an existing error to make certain properties lazy

tryError API Documentation v0.0.1-alpha.1


tryError API Documentation / makeLazy

Function: makeLazy()

function makeLazy<E>(error, lazyProps): E;

Defined in: lazy.ts:75

Wrap an existing error to make certain properties lazy

Type Parameters

E

E extends TryError<string>

Parameters

error

E

lazyProps

context?

() => undefined | Record<string, unknown>

source?

() => string

stack?

() => undefined | string

Returns

E