Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte2tsx

Package Overview
Dependencies
Maintainers
3
Versions
296
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte2tsx - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

8

index.d.ts

@@ -39,3 +39,11 @@ export interface SvelteCompiledToTsx {

namespace?: string;
/**
* When setting this to 'dts', all tsx/jsx code and the template code will be thrown out,
* all shims will be inlined and the component export is written differently.
* Only the `code` property will be set on the returned element.
* Use this as an intermediate step to generate type definitions from a component.
* It is expected to pass the result to TypeScript which should handle emitting the d.ts files.
*/
mode?: 'tsx' | 'dts'
}
): SvelteCompiledToTsx

9

package.json
{
"name": "svelte2tsx",
"version": "0.2.0",
"version": "0.2.1",
"description": "Convert Svelte components to TSX for type checking",

@@ -47,6 +47,7 @@ "author": "David Pershouse",

"scripts": {
"build": "rollup -c",
"build": "npm run create-files && rollup -c",
"prepublishOnly": "npm run build",
"dev": "rollup -c -w",
"test": "mocha test/test.ts"
"dev": "npm run create-files && rollup -c -w",
"test": "npm run create-files && mocha test/test.ts",
"create-files": "node ./create-files.js"
},

@@ -53,0 +54,0 @@ "files": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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