@softwareventures/maintain-project
Version:
Automatically create and maintain TypeScript projects with standard settings for Software Ventures Limited
11 lines (10 loc) • 500 B
TypeScript
import type { Result } from "../result/result.js";
import type { ProjectSource } from "./project.js";
import type { ReadTextFailureReason } from "./read-text.js";
export type ReadJsonResult = Result<ReadJsonFailureReason, any>;
export type ReadJsonFailureReason = ReadTextFailureReason | InvalidJson;
export interface InvalidJson {
readonly type: "invalid-json";
readonly path: string;
}
export declare function readProjectJson(project: ProjectSource, path: string): Promise<ReadJsonResult>;