UNPKG

css-module-type-definitions

Version:
35 lines (34 loc) 1.09 kB
export declare type CMTDOptions = { rootDirectoryPath?: string; inputDirectoryName?: string; outputDirectoryName?: string; globPattern?: string; dropExtensions?: boolean; camelCase?: boolean; logger?: Logger; config?: any; }; export declare type Logger = { info: (x: string) => void; warn: (x: string) => void; error: (x: string) => void; }; export declare class CMTD { private readonly rootDirectoryPath; private readonly inputDirectoryName; private readonly outputDirectoryName; private readonly globPattern; private readonly dropExtensions; private readonly camelCase; private readonly logger; private readonly config; constructor({ rootDirectoryPath, inputDirectoryName, outputDirectoryName, globPattern, dropExtensions, camelCase, logger, config, }: CMTDOptions); private generateTypes; scan(): Promise<void>; watch(): void; private static removeExtension; private static exists; private static toCamelCase; } export { CMTDWebpackPlugin } from './webpack-plugin'; export default CMTD;