UNPKG

@softwareventures/maintain-project

Version:

Automatically create and maintain TypeScript projects with standard settings for Software Ventures Limited

11 lines (10 loc) 656 B
import type { Result } from "../result/result.js"; import type { Directory } from "./directory.js"; import type { File } from "./file.js"; import type { ReadFileNodeResult } from "./read-file-node-result.js"; import type { InsertFailureReason } from "./insert-failure-reason.js"; export type FileNode = Directory | File; export declare function readFileNode(root: FileNode, path: string): ReadFileNodeResult; export type InsertResult = Result<InsertFailureReason, Directory>; export declare function insert(root: FileNode, path: string, node: FileNode): InsertResult; export declare function insertSubdirectory(root: FileNode, path: string): InsertResult;