interface TypecheckConfig {
    allowJs?: boolean;
    checker: string & Record<never, never> | "tsc" | "vue-tsc";
    enabled?: boolean;
    exclude: string[];
    ignoreSourceErrors?: boolean;
    include: string[];
    only?: boolean;
    tsconfig?: string;
}

Properties

allowJs?: boolean

Check JS files that have @ts-check comment. If you have it enabled in tsconfig, this will not overwrite it.

checker: string & Record<never, never> | "tsc" | "vue-tsc"

What tools to use for type checking.

enabled?: boolean

Run typechecking tests alongisde regular tests.

exclude: string[]

Pattern for files that should not be treated as test files

ignoreSourceErrors?: boolean

Do not fail, if Vitest found errors outside the test files.

include: string[]

Pattern for files that should be treated as test files

only?: boolean

When typechecking is enabled, only run typechecking tests.

tsconfig?: string

Path to tsconfig, relative to the project root.

Generated using TypeDoc