UNPKG

@softwareventures/maintain-project

Version:

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

8 lines (7 loc) 482 B
import type { Result } from "../result/result.js"; import type { FileNotFound } from "../fs-stage/file-not-found.js"; import type { FileIsDirectory } from "../fs-stage/file-is-directory.js"; import type { ProjectSource } from "./project.js"; export type ReadTextResult = Result<ReadTextFailureReason, string>; export type ReadTextFailureReason = FileNotFound | FileIsDirectory; export declare function readProjectText(project: ProjectSource, path: string): Promise<ReadTextResult>;