eslint-plugin-regexp
Version:
ESLint plugin for finding RegExp mistakes and RegExp style guide violations.
6 lines (5 loc) • 358 B
TypeScript
export declare function assertNever(value: never): never;
export declare function lazy<R extends NonNullable<unknown> | null>(fn: () => R): () => R;
export declare function cachedFn<K extends object, R>(fn: (key: K) => R): (key: K) => R;
export declare function toCodePoints(s: string): number[];
export declare function reversed<T>(iter: Iterable<T>): T[];