typescript-docs-verifier
Version:
Verifies that typescript examples in markdown files actually compile.
23 lines (22 loc) • 721 B
TypeScript
export type SubpathPattern = "." | string;
type ConditionalExportKeys = "node-addons" | "node" | "import" | "require" | "default";
export type SubpathExports = {
[key in SubpathPattern]?: string | null | {
[key in ConditionalExportKeys]?: string;
};
};
export type ConditionalExports = {
[key in ConditionalExportKeys]?: string | null;
};
export type PackageExports = string | SubpathExports | ConditionalExports;
export type PackageDefinition = {
readonly name: string;
readonly main?: string;
readonly packageRoot: string;
readonly exports?: PackageExports;
};
export declare class PackageInfo {
private constructor();
static read(): Promise<PackageDefinition>;
}
export {};