You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

9 lines
453 B

import { Buffer } from '@jsonjoy.com/fs-node-builtins/lib/internal/buffer';
export type DirectoryContent = string | Buffer | null;
export interface DirectoryJSON<T extends DirectoryContent = DirectoryContent> {
[key: string]: T;
}
export interface NestedDirectoryJSON<T extends DirectoryContent = DirectoryContent> {
[key: string]: T | NestedDirectoryJSON;
}
export declare const flattenJSON: (nestedJSON: NestedDirectoryJSON) => DirectoryJSON;