next-with-linaria
Version:
Linaria support for Next.js App Router
25 lines (24 loc) • 1.14 kB
TypeScript
import type * as Webpack from 'webpack';
type CssModuleType = {
auto: boolean | RegExp | ((resourcePath: string) => boolean);
exportGlobals: boolean;
exportLocalsConvention: 'asIs' | 'camelCase' | 'camelCaseOnly' | 'dashes' | 'dashesOnly' | ((name: string) => string);
exportOnlyLocals: boolean;
getLocalIdent: (context: Webpack.LoaderContext<unknown>, localIdentName: string, exportName: string, options: object) => string;
localIdentContext: string;
localIdentHashDigest: string;
localIdentHashFunction: string;
localIdentHashSalt: string;
localIdentName: string;
localIdentRegExp: string | RegExp;
mode: 'local' | 'global' | 'pure' | 'icss' | ((resourcePath: string) => 'local' | 'global' | 'pure' | 'icss');
namedExport: boolean;
};
export declare function isCssModule(rule: Webpack.RuleSetRule): rule is Webpack.RuleSetRule & {
options: {
modules: CssModuleType;
};
};
export declare function isCssLoader(rule: Webpack.RuleSetRule): boolean;
export declare function isFSCache(cache: Webpack.Configuration['cache']): cache is Webpack.FileCacheOptions;
export {};