templates-mo
Version:
Templates is a scaffolding framework that makes code generation simple, dynamic, and reusable. Generate files, parts of your app, or whole project structures—without the repetitive copy-pasting
15 lines (14 loc) • 616 B
TypeScript
import { FileSystemNode, SimpleFileSystemInfo, FileSystemNodeCallback } from './fileSystemNode';
import FileNode from './fileNode';
type FindKeyPattern = Partial<{
[Property in keyof FileNode]: any;
}>;
export declare class DirectoryNode extends FileSystemNode {
constructor(name: string, parentDirNode?: any, verbose?: boolean);
toObject(): SimpleFileSystemInfo;
_renderChildren(): void;
eachChild(cb: FileSystemNodeCallback): void;
selectChildren(cb: FileSystemNodeCallback<boolean>): FileSystemNode[];
find(selectBy?: FindKeyPattern): FileSystemNode[];
}
export default DirectoryNode;