webpack-assets-manifest
Version:
This Webpack plugin will generate a JSON file that matches the original filename with the hashed version.
17 lines (16 loc) • 647 B
TypeScript
export type UnknownRecord = Record<PropertyKey, unknown>;
export type AssetsStorage = Record<string | number, any>;
export type AssetsStorageKey = keyof AssetsStorage;
export type AssetsStorageValue = AssetsStorage[AssetsStorageKey];
export type KeyValuePair<K extends AssetsStorageKey = AssetsStorageKey, V extends AssetsStorageValue = AssetsStorageValue> = {
key: K;
value: V;
} | {
key: K;
value?: V;
} | {
key?: K;
value: V;
};
export type JsonStringifyReplacer = ((this: any, key: string, value: any) => any) | (string | number)[] | null | undefined;
export type JsonStringifySpace = Parameters<JSON['stringify']>[2];