You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1.5 KiB
23 lines
1.5 KiB
import * as ts from 'typescript'; |
|
import { FilesRegister } from './FilesRegister'; |
|
import { FilesWatcher } from './FilesWatcher'; |
|
import { ResolveModuleName, ResolveTypeReferenceDirective } from './resolution'; |
|
interface ResolvedScript { |
|
scriptKind: ts.ScriptKind; |
|
content: string; |
|
} |
|
export declare class VueProgram { |
|
static loadProgramConfig(typescript: typeof ts, configFile: string, compilerOptions: object): ts.ParsedCommandLine; |
|
/** |
|
* Search for default wildcard or wildcard from options, we only search for that in tsconfig CompilerOptions.paths. |
|
* The path is resolved with thie given substitution and includes the CompilerOptions.baseUrl (if given). |
|
* If no paths given in tsconfig, then the default substitution is '[tsconfig directory]/src'. |
|
* (This is a fast, simplified inspiration of what's described here: https://github.com/Microsoft/TypeScript/issues/5039) |
|
*/ |
|
static resolveNonTsModuleName(moduleName: string, containingFile: string, basedir: string, options: ts.CompilerOptions): string; |
|
static isVue(filePath: string): boolean; |
|
static createProgram(typescript: typeof ts, programConfig: ts.ParsedCommandLine, basedir: string, files: FilesRegister, watcher: FilesWatcher, oldProgram: ts.Program, userResolveModuleName: ResolveModuleName | undefined, userResolveTypeReferenceDirective: ResolveTypeReferenceDirective | undefined): ts.Program; |
|
private static getScriptKindByLang; |
|
static resolveScriptBlock(typescript: typeof ts, content: string): ResolvedScript; |
|
} |
|
export {};
|
|
|