Skip to content

withFileIn beta ​

Function of @v12-engine/client

ts
export declare function withFileIn(record: Record<string, Omit<AssetCategory, 'id'>> | undefined, path: string, to: string | undefined, name?: string): Record<string, Omit<AssetCategory, 'id'>>;

The categories of an assets.json with a file put into one (to), or out of the one it was listed in (nothing): it is listed by its path in the category it goes to, and taken off the lists of the others. A category not there is made, called name