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.
16 lines
558 B
16 lines
558 B
|
2 years ago
|
import * as ts from 'typescript';
|
||
|
|
import * as vue from '@volar/vue-language-core';
|
||
|
|
import * as vueTs from '@volar/vue-typescript';
|
||
|
|
export type Hook = (program: _Program) => void;
|
||
|
|
export type _Program = ts.Program & {
|
||
|
|
__vue: ProgramContext;
|
||
|
|
};
|
||
|
|
interface ProgramContext {
|
||
|
|
projectVersion: number;
|
||
|
|
options: ts.CreateProgramOptions;
|
||
|
|
languageServiceHost: vue.VueLanguageServiceHost;
|
||
|
|
languageService: ReturnType<typeof vueTs.createLanguageService>;
|
||
|
|
}
|
||
|
|
export declare function createProgram(options: ts.CreateProgramOptions): _Program;
|
||
|
|
export {};
|