Skip to content
1 min read · 37 words

Type Alias: Resolver<T> ​

ts
type Resolver<T> =
  | T
  | (() =>
      | T
      | {
          default: T;
        })
  | (() => Promise<
      | T
      | {
          default: T;
        }
    >);

Defined in: src/batteries/tools/web_retrieval/index.ts:36

A resolver of T: the value itself, or a (sync/async) thunk, optionally a module { default }.

Type Parameters ​

Type Parameter
T