UNPKG

typescript-docs-verifier

Version:

Verifies that typescript examples in markdown files actually compile.

21 lines (20 loc) 642 B
type ConditionalExportKeys = "node-addons" | "node" | "import" | "require" | "default"; export type SubpathExports = { [key in string]?: 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 const PackageInfo: { read: () => Promise<PackageDefinition>; }; export {};