0.8.1 • Published 2 years ago

@vuedx/compiler-tsx v0.8.1

Weekly downloads
5,318
License
MIT
Repository
github
Last release
2 years ago

Compiler TSX

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

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.

Usage

npm add @vuedx/compiler-tsx

API

compile

Signature:

declare function compile(template: string, options: Options & CompilerOptions): CodegenResult;
ParameterTypeDescription
templatestring-
optionsOptions & CompilerOptions-

parse

Signature:

declare function parse(template: string, options: ParserOptions): RootNode;
ParameterTypeDescription
templatestring-
optionsParserOptions-

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;
}
0.8.1

2 years ago

0.8.0

2 years ago

0.7.2

3 years ago

0.7.1

3 years ago

0.7.4

3 years ago

0.7.3

3 years ago

0.7.0

3 years ago

0.6.3

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.2.4-0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago