mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-02 03:29:30 +08:00
22 lines
No EOL
1.1 KiB
Text
22 lines
No EOL
1.1 KiB
Text
import * as ts from 'typescript';
|
|
import { Program } from 'typescript';
|
|
import { Extra, ModuleResolver } from '../parser-options';
|
|
interface ASTAndProgram {
|
|
ast: ts.SourceFile;
|
|
program: ts.Program;
|
|
}
|
|
/**
|
|
* Compiler options required to avoid critical functionality issues
|
|
*/
|
|
declare const CORE_COMPILER_OPTIONS: ts.CompilerOptions;
|
|
declare function createDefaultCompilerOptionsFromExtra(extra: Extra): ts.CompilerOptions;
|
|
declare type CanonicalPath = string & {
|
|
__brand: unknown;
|
|
};
|
|
declare function getCanonicalFileName(filePath: string): CanonicalPath;
|
|
declare function ensureAbsolutePath(p: string, extra: Extra): string;
|
|
declare function canonicalDirname(p: CanonicalPath): CanonicalPath;
|
|
declare function getAstFromProgram(currentProgram: Program, extra: Extra): ASTAndProgram | undefined;
|
|
declare function getModuleResolver(moduleResolverPath: string): ModuleResolver;
|
|
export { ASTAndProgram, CORE_COMPILER_OPTIONS, canonicalDirname, CanonicalPath, createDefaultCompilerOptionsFromExtra, ensureAbsolutePath, getCanonicalFileName, getAstFromProgram, getModuleResolver, };
|
|
//# sourceMappingURL=shared.d.ts.map |