mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-08 19:34:56 +02:00
18 lines
418 B
TypeScript
18 lines
418 B
TypeScript
import { ConfigAPI, NodePath, types } from '@babel/core';
|
|
|
|
interface Value {
|
|
value: string;
|
|
newValue: string | boolean | number;
|
|
literal?: boolean;
|
|
}
|
|
interface Options {
|
|
values: Value[];
|
|
}
|
|
declare const addJSXAttribute: (api: ConfigAPI, opts: Options) => {
|
|
visitor: {
|
|
JSXAttribute(path: NodePath<types.JSXAttribute>): void;
|
|
};
|
|
};
|
|
|
|
export { Options, Value, addJSXAttribute as default };
|