import { Function } from './Function.js'; /** * A type that may be a function that returns a value of type `T` * or a value of type `T` itself. * * @template T The type of the value that the function returns. * @template P The arguments that the function takes. * @example MaybeFunction // number | (() => number) */ type MaybeFunction = Function | T; export type { MaybeFunction };