UNPKG

knip

Version:

Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects

57 lines (56 loc) 1.6 kB
import type { WebpackConfig } from '../webpack/types.ts'; export type ModuleType = 'plugin' | 'theme' | 'preset'; type DocsConfig = { sidebarPath?: string; [key: string]: unknown; }; export type PluginOptions = { sidebarPath?: string; [key: string]: unknown; }; export type PresetOptions = { docs?: DocsConfig; [key: string]: unknown; }; type Loader = unknown; type PluginConfig = string | [string, PluginOptions] | false | null | { name?: string; configureWebpack?: (config?: PluginConfig, isServer?: boolean, utils?: { getStyleLoaders(isServer: boolean, cssOptions: { [key: string]: any; }): Loader[]; getJSLoader(isServer: boolean, cacheOptions?: {}): Loader | null; }, content?: unknown) => WebpackConfig; configurePostCss?: (postcssOptions: { plugins: unknown[]; }) => { plugins: unknown[]; }; }; type PresetConfig = string | [string, PresetOptions] | false | null; type Config = PresetConfig | PluginConfig; export type ConfigItem = Config | (() => Config); type ScriptTag = { src: string; [key: string]: unknown; }; type StylesheetLink = { href: string; [key: string]: unknown; }; export type DocusaurusConfig = { title: string; url: string; themes?: PluginConfig[]; plugins?: PluginConfig[]; presets: PresetConfig[]; scripts?: (string | ScriptTag)[]; stylesheets?: (string | StylesheetLink)[]; future?: { experimental_faster?: boolean | { [key: string]: unknown; }; [key: string]: unknown; }; }; export {};