UNPKG

@modern-js/module-tools

Version:

Simple, powerful, high-performance modern npm package development solution.

11 lines (10 loc) 727 B
import type { BuildType, GeneratorDtsConfig, ITsconfig, TsTarget } from '../types'; export declare const getProjectTsconfig: (tsconfigPath: string, resolutionContext?: Record<string, boolean>) => Promise<ITsconfig>; export declare function detectTSVersion(appDirectory?: string): Promise<number | undefined>; export declare const getTscBinPath: (appDirectory: string) => Promise<string>; export declare const processDtsFilesAfterTsc: (config: GeneratorDtsConfig) => Promise<void>; export declare const printOrThrowDtsErrors: (error: unknown, options: { abortOnError?: boolean; buildType: BuildType; }) => Promise<void>; export declare const tsTargetAtOrAboveES2022: (target: TsTarget) => target is "esnext" | "es2022";