vite-typescript-plugin
Version:
A Vite plugin for seamless integration between Vite and Typescript.
4 lines (3 loc) • 349 B
TypeScript
import { CustomCompilerHost } from ".";
import ts from "typescript";
export declare function getSourceFileByPath(this: CustomCompilerHost, fileName: string, path: ts.Path, languageVersionOrOptions: ts.ScriptTarget | ts.CreateSourceFileOptions, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): ts.SourceFile | undefined;