You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
756 B
25 lines
756 B
|
2 years ago
|
import { SourceCodeTransformer } from '@unocss/core';
|
||
|
|
|
||
|
|
type FilterPattern = Array<string | RegExp> | string | RegExp | null;
|
||
|
|
interface TransformerAttributifyJsxOptions {
|
||
|
|
/**
|
||
|
|
* the list of attributes to ignore
|
||
|
|
* @default []
|
||
|
|
*/
|
||
|
|
blocklist?: (string | RegExp)[];
|
||
|
|
/**
|
||
|
|
* Regex of modules to be included from processing
|
||
|
|
* @default [/\.[jt]sx$/, /\.mdx$/]
|
||
|
|
*/
|
||
|
|
include?: FilterPattern;
|
||
|
|
/**
|
||
|
|
* Regex of modules to exclude from processing
|
||
|
|
*
|
||
|
|
* @default []
|
||
|
|
*/
|
||
|
|
exclude?: FilterPattern;
|
||
|
|
}
|
||
|
|
declare function transformerAttributifyJsx(options?: TransformerAttributifyJsxOptions): SourceCodeTransformer;
|
||
|
|
|
||
|
|
export { FilterPattern, TransformerAttributifyJsxOptions, transformerAttributifyJsx as default };
|