Skip to content

@deepkit/vite type error for Options #696

@lionelhorn

Description

@lionelhorn

export interface Options {
include?: string;
exclude?: string;
tsConfig?: string;
transformers?: ts.CustomTransformers;
compilerOptions?: ts.CompilerOptions;

export function deepkitType(options: Options = {}) {
const filter = createFilter(options.include ?? ['**/*.tsx', '**/*.ts'], options.exclude ?? 'node_modules/**');

include should match the type of first arg of createFilter which is according to rollup d.ts a FilterPattern (not just string)

export type FilterPattern = ReadonlyArray<string | RegExp> | string | RegExp | null;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions