typedash
Version:
modern, type-safe collection of utility functions
16 lines (15 loc) • 718 B
text/typescript
import { t as AnyFunction } from "./AnyFunction-C6KudB8p.cjs";
//#region src/types/_internal/NonFunction.d.ts
type NonFunction<T> = Exclude<T, AnyFunction>;
//#endregion
//#region src/functions/join/join.d.ts
/**
* Same as `Array.prototype.join`, but allows specifying a non-`string` separator.
* @param elements The elements to join.
* @param separator The separator to use.
* @returns An array with the elements joined by the separator.
*/
declare function join<T extends NonFunction<any>, U extends NonFunction<any>>(elements: readonly NonNullable<T>[], separator: U | ((index: number) => U)): Array<symbol | U | NonNullable<T>>;
//#endregion
export { join as t };
//# sourceMappingURL=join-EOl8OBCL.d.cts.map