interface.d.ts 859 B

1234567891011121314151617181920212223
  1. import * as t from '@babel/types';
  2. import * as BabelCore from '@babel/core';
  3. export declare type Slots = t.Identifier | t.ObjectExpression | null;
  4. export declare type State = {
  5. get: (name: string) => any;
  6. set: (name: string, value: any) => any;
  7. opts: VueJSXPluginOptions;
  8. file: BabelCore.BabelFile;
  9. };
  10. export interface VueJSXPluginOptions {
  11. /** transform `on: { click: xx }` to `onClick: xxx` */
  12. transformOn?: boolean;
  13. /** enable optimization or not. */
  14. optimize?: boolean;
  15. /** merge static and dynamic class / style attributes / onXXX handlers */
  16. mergeProps?: boolean;
  17. /** configuring custom elements */
  18. isCustomElement?: (tag: string) => boolean;
  19. /** enable object slots syntax */
  20. enableObjectSlots?: boolean;
  21. /** Replace the function used when compiling JSX expressions */
  22. pragma?: string;
  23. }