New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vuedx/compiler-tsx

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vuedx/compiler-tsx

Converts .vue file to .tsx for typechecking and intellisense

  • 0.7.5-next-1648824950.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.2K
decreased by-22.4%
Maintainers
1
Weekly downloads
 
Created
Source

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

More info

Signature:

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

parse

More info

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

Keywords

FAQs

Package last updated on 01 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc