Type Alias BasicWrapper<T>

BasicWrapper: { value: T }

Encapsulates any value, adding a layer of indirection.

It is especially useful when an async function returns a Promise that should not be awaited: it can be wrapped instead.

Type Parameters

  • T = unknown

    the type of the wrapped value.

Type declaration

  • Readonlyvalue: T