@vuedx/transforms
TypeScript icon, indicating that this package has built-in type declarations

0.7.6 • Public • Published

Compiler TSX

A custom compiler to convert Vue template to a (functional) TSX representation for type checking.

Usage

npm add @vuedx/compiler-tsx

API

compile

More info

Signature:

declare function compile(template: string, options: Options & CompilerOptions): CodegenResult;
Parameter Type Description
template string -
options Options & CompilerOptions -

parse

More info

Signature:

declare function parse(template: string, options: ParserOptions): RootNode;
Parameter Type Description
template string -
options ParserOptions -

Types

CodegenResult

interface CodegenResult extends CodegenResult$1 {
  errors: CompilerError[];
  expressions: Array<[number, number]>;
  mappings: Array<[number, number, number, number, number]>;
}

ComponentImport

interface ComponentImport {
  name?: string;
  named?: boolean;
  path: string;
}

Options

interface Options {
  components?: Record<string, ComponentImport>;
  filename: string;
}

Support

This package is part of VueDX project, maintained by Rahul Kadyan. You can 💖 sponsor him for continued development of this package and other VueDX tools.

Readme

Keywords

none

Package Sidebar

Install

npm i @vuedx/transforms

Weekly Downloads

1,986

Version

0.7.6

License

MIT

Unpacked Size

134 kB

Total Files

19

Last publish

Collaborators

  • znck