import type { IsAny } from '../../../any/index.js'; import type { CallableOptions, GetCallableOptions } from './CallableOptions.js'; import { UNSET } from '../../../_/symbols/unset.js'; export type Callable = {}> = GetCallableOptions['this'] extends UNSET ? (...args: Callable.FixParameters['parameters']>) => GetCallableOptions['return'] : (this: GetCallableOptions['this'], ...args: Callable.FixParameters['parameters']>) => GetCallableOptions['return']; export type Callable_ = O extends Partial ? Callable : never; export declare namespace Callable { /** * Apply some fixes to make type inference work better * * - Remove `readonly` from the whole parameters array * - Do not touch `any` parameters */ type FixParameters

= IsAny

extends true ? any : [...P]; } //# sourceMappingURL=Callable.d.ts.map