UNPKG

knip

Version:

Find unused files, dependencies and exports in your TypeScript and JavaScript projects

6 lines (5 loc) 305 B
type Collection<T> = Array<T> | Set<T>; export declare const compact: <T>(collection: Collection<T | undefined>) => T[]; export declare const arrayify: (value?: string[] | string) => string[]; export declare const partition: <T>(collection: T[], predicate: (item: T) => unknown) => [T[], T[]]; export {};