mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-15 20:34:56 +02:00
17 lines
336 B
TypeScript
17 lines
336 B
TypeScript
import { NodePath, types } from '@babel/core';
|
|
|
|
declare type tag = 'title' | 'desc';
|
|
interface Options {
|
|
tag: tag | null;
|
|
}
|
|
interface State {
|
|
opts: Options;
|
|
}
|
|
declare const plugin: () => {
|
|
visitor: {
|
|
JSXElement(path: NodePath<types.JSXElement>, state: State): void;
|
|
};
|
|
};
|
|
|
|
export { Options, plugin as default };
|