File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -406,7 +406,7 @@ const baseWorkspaceConfigurationSchema = z.object({
406406
407407const partialPluginsSchema = z . partial ( pluginsSchema ) ;
408408
409- const workspaceConfigurationSchema = z . strictObject ( {
409+ export const workspaceConfigurationSchema = z . strictObject ( {
410410 ...baseWorkspaceConfigurationSchema . shape ,
411411 ...partialPluginsSchema . shape ,
412412} ) ;
Original file line number Diff line number Diff line change 11export type { RawConfigurationOrFn as KnipConfig } from './types/config.js' ;
22export type { Preprocessor , Reporter , ReporterOptions } from './types/issues.js' ;
3+ export type { WorkspaceProjectConfig } from './types/config.js' ;
Original file line number Diff line number Diff line change 11import type ts from 'typescript' ;
22import type { z } from 'zod/mini' ;
33import type { AsyncCompilers , SyncCompilers } from '../compilers/types.js' ;
4- import type { knipConfigurationSchema } from '../schema/configuration.js' ;
4+ import type { knipConfigurationSchema , workspaceConfigurationSchema } from '../schema/configuration.js' ;
55import type { pluginSchema } from '../schema/plugins.js' ;
66import type { ParsedCLIArgs } from '../util/cli-arguments.js' ;
77import type { Input } from '../util/input.js' ;
@@ -42,6 +42,8 @@ export type RawConfigurationOrFn =
4242
4343export type RawPluginConfiguration = z . infer < typeof pluginSchema > ;
4444
45+ export type WorkspaceProjectConfig = z . infer < typeof workspaceConfigurationSchema > ;
46+
4547export type IgnorePatterns = ( string | RegExp ) [ ] ;
4648
4749type IgnorableExport = Exclude < SymbolType , 'unknown' > ;
You can’t perform that action at this time.
0 commit comments