summaryrefslogtreecommitdiff
path: root/node_modules/liquidjs/dist/util/underscore.d.ts
diff options
context:
space:
mode:
authorShipwreckt <me@shipwreckt.co.uk>2025-10-31 20:02:14 +0000
committerShipwreckt <me@shipwreckt.co.uk>2025-10-31 20:02:14 +0000
commit7a52ddeba2a68388b544f529d2d92104420f77b0 (patch)
tree15ddd47457a2cb4a96060747437d36474e4f6b4e /node_modules/liquidjs/dist/util/underscore.d.ts
parent53d6ae2b5568437afa5e4995580a3fb679b7b91b (diff)
Changed from static to 11ty!
Diffstat (limited to 'node_modules/liquidjs/dist/util/underscore.d.ts')
-rw-r--r--node_modules/liquidjs/dist/util/underscore.d.ts40
1 files changed, 40 insertions, 0 deletions
diff --git a/node_modules/liquidjs/dist/util/underscore.d.ts b/node_modules/liquidjs/dist/util/underscore.d.ts
new file mode 100644
index 0000000..c54f852
--- /dev/null
+++ b/node_modules/liquidjs/dist/util/underscore.d.ts
@@ -0,0 +1,40 @@
+export declare const toString: () => string;
+export declare const hasOwnProperty: (v: PropertyKey) => boolean;
+export declare function isString(value: any): value is string;
+export declare function isFunction(value: any): value is Function;
+export declare function isPromise<T>(val: any): val is Promise<T>;
+export declare function isIterator(val: any): val is IterableIterator<any>;
+export declare function escapeRegex(str: string): string;
+export declare function promisify<T1, T2>(fn: (arg1: T1, cb: (err: Error | null, result: T2) => void) => void): (arg1: T1) => Promise<T2>;
+export declare function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, cb: (err: Error | null, result: T3) => void) => void): (arg1: T1, arg2: T2) => Promise<T3>;
+export declare function stringify(value: any): string;
+export declare function toEnumerable<T = unknown>(val: any): T[];
+export declare function toArray(val: any): any[];
+export declare function toValue(value: any): any;
+export declare function toNumber(value: any): number;
+export declare function isNumber(value: any): value is number;
+export declare function toLiquid(value: any): any;
+export declare function isNil(value: any): boolean;
+export declare function isUndefined(value: any): boolean;
+export declare function isArray(value: any): value is any[];
+export declare function isArrayLike(value: any): value is any[];
+export declare function isIterable(value: any): value is Iterable<any>;
+export declare function forOwn<T>(obj: Record<string, T> | undefined, iteratee: ((val: T, key: string, obj: {
+ [key: string]: T;
+}) => boolean | void)): Record<string, T>;
+export declare function last<T>(arr: T[]): T;
+export declare function last(arr: string): string;
+export declare function isObject(value: any): value is object;
+export declare function range(start: number, stop: number, step?: number): number[];
+export declare function padStart(str: any, length: number, ch?: string): any;
+export declare function padEnd(str: any, length: number, ch?: string): any;
+export declare function pad(str: any, length: number, ch: string, add: (str: string, ch: string) => string): any;
+export declare function identify<T>(val: T): T;
+export declare function changeCase(str: string): string;
+export declare function ellipsis(str: string, N: number): string;
+export declare function caseInsensitiveCompare(a: any, b: any): 0 | 1 | -1;
+export declare function argumentsToValue<F extends (...args: any) => any, T>(fn: F): (this: T, ...args: Parameters<F>) => any;
+export declare function argumentsToNumber<F extends (...args: any) => any, T>(fn: F): (this: T, ...args: Parameters<F>) => any;
+export declare function escapeRegExp(text: string): string;
+/** Return an array containing unique elements from _array_. Works with nested arrays and objects. */
+export declare function strictUniq<T>(array: Array<T>): Generator<T>;