Skip to content

@deepkit/vite type error for Options #696

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;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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