UNPKG

@dotcms/types

Version:

The `@dotcms/types` package contains TypeScript type definitions for the dotCMS ecosystem. Use it to enable type safety and an enhanced developer experience when working with dotCMS APIs and structured content.

10 lines (9 loc) 336 B
/** * Callback for a fulfilled promise. * * @template T - The type of the response. * @callback ThenableCallback * @param {T} value - The response value. * @returns {T | PromiseLike<T> | void} The processed response or a promise. */ export type ThenableCallback<T> = ((value: T) => T | PromiseLike<T> | void) | undefined | null;