-
-
Notifications
You must be signed in to change notification settings - Fork 318
Open
Labels
feature requestFeature requestFeature request
Description
Context
As user I'm interested in defining my config in a knip.ts config file.
Most of my workspace config can be extended from a base config. I'm interested in accesing the workspace config type. With the addition of function configs, it's starting to become sort of cumbersome to access this type:
import { KnipConfig } from "knip";
type IsNotFunction<T> = T extends (...args: any) => any ? never : T;
type RecordValues<T> = T extends Record<any, infer U> ? U : never;
type KnipConfigObject = IsNotFunction<KnipConfig>;
type WorkspaceProjectConfig = RecordValues<
Required<KnipConfigObject["workspaces"]>
>;Feature request
Would it be possible to expose WorkspaceProjectConfig at dist/types.d.ts so we can access to it in a more straightforward way?
Metadata
Metadata
Assignees
Labels
feature requestFeature requestFeature request