UNPKG

webpack-assets-manifest

Version:

This Webpack plugin will generate a JSON file that matches the original filename with the hashed version.

7 lines (6 loc) 626 B
import { type BinaryLike } from 'node:crypto'; export declare function asArray<T>(data: T | T[]): T[]; export declare function getSRIHash(algorithm: string, content: string | BinaryLike): string; export declare function getSortedObject(object: Record<string, unknown>, compareFunction?: (left: string, right: string) => number): typeof object; export declare function findMapKeysByValue<K = string, V = string>(map: Map<K, V>): (searchValue: V) => K[]; export declare function group<T>(data: readonly T[], getGroup: (item: T) => PropertyKey | undefined, mapper?: (item: T, group: PropertyKey) => T): Record<PropertyKey, T[]>;