UNPKG

@softwareventures/maintain-project

Version:

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

12 lines (11 loc) 516 B
import { JSDOM } from "jsdom"; import type { Result } from "../result/result.js"; import type { ProjectSource } from "./project.js"; import type { ReadTextFailureReason } from "./read-text.js"; export type ReadXmlResult = Result<ReadXmlFailureReason, JSDOM>; export type ReadXmlFailureReason = ReadTextFailureReason | InvalidXml; export interface InvalidXml { readonly type: "invalid-xml"; path: string; } export declare function readProjectXml(project: ProjectSource, path: string): Promise<ReadXmlResult>;