/** * @file Functional.Types.ts * @author Gage Sorrell * @copyright (c) 2026 Gage Sorrell * @license MIT */ /** * A function type with defaults that make defining callback types convenient. * * @template ArgumentVectorType - The type of the argument or argument vector. * If `ArgumentType extends Array`, then this will be taken to * be the argument vector. To set the argument vector to be a single, * `Array` argument, say `MyArrayType`, set `ArgumentType` to `[ MyArrayType ]`. * * @template ReturnType - The type returned by this. */ export type TFunction, ReturnType = void> = (...ArgumentVector: ArgumentVectorType) => ReturnType; /** Any function, which may accept arguments, and may return something. */ export type FFunctionAny = TFunction, any>; /** * A function that accepts an {@link Argument} of a given {@link ArgumentType}, * and returns `true` or `false`. * * @template ArgumentType - The type of the argument for which a predicate * of this type evaluates. */ export type TPredicate = (Argument: ArgumentType) => boolean; //# sourceMappingURL=Functional.Types.d.ts.map