-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
104 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
export interface PluginOptions { | ||
/** | ||
* Use `"tsc"` or `"vue-tsc"` | ||
* @defaultValue `"tcs"` | ||
*/ | ||
checker: 'tsc' | 'vue-tsc' | ||
/** | ||
* Throw in build mode if has error | ||
* @defaultValue `true` | ||
*/ | ||
enableBuild: boolean | ||
/** | ||
* Show overlay when has TypeScript error | ||
* @defaultValue | ||
* Same as [Vite config](https://vitejs.dev/config/#root) | ||
*/ | ||
overlay: boolean | ||
/** | ||
* [WIP] | ||
* 'cli': use `tsc --noEmit` or `vue-tsc --noEmit` | ||
* - No overlay support | ||
* - Original console output | ||
* | ||
* 'api': use TypeScript programmatic API | ||
* - Support overlay | ||
* - Almost the same console output as original | ||
* | ||
* @defaultValue | ||
* if 'vueTsc' is true, then force set to 'cli', otherwise default to 'api' | ||
*/ | ||
mode: 'cli' | 'api' | ||
/** | ||
* Root path to find tsconfig file | ||
* @defaultValue | ||
* Same as Vite https://vitejs.dev/config/#root | ||
*/ | ||
root: string | ||
/** | ||
* Relative tsconfig path to {@link (PluginOptions:interface).root} | ||
* @defaultValue `"tsconfig.json"` | ||
*/ | ||
tsconfigPath: string | ||
} |