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

tree-sitter-typescript

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tree-sitter-typescript - npm Package Compare versions

Comparing version 0.13.6 to 0.14.0

common/define-grammar.js

16

package.json
{
"name": "tree-sitter-typescript",
"version": "0.13.6",
"version": "0.14.0",
"description": "Typescript grammar for tree-sitter",
"main": "index.js",
"keywords": [
"parser",
"tree-sitter",
"typescript"

@@ -16,10 +16,14 @@ ],

"devDependencies": {
"tree-sitter-cli": "^0.13.5",
"tree-sitter-cli": "^0.14.4",
"tree-sitter-javascript": "tree-sitter/tree-sitter-javascript"
},
"scripts": {
"build": "tree-sitter generate && node-gyp build",
"test": "tree-sitter test && script/parse-examples",
"test-windows": "tree-sitter test && tree-sitter parse examples --quiet --time"
"build": "npm run build-typescript && npm run build-tsx",
"build-typescript": "cd typescript && tree-sitter generate",
"build-tsx": "cd tsx && tree-sitter generate",
"test": "npm run test-typescript && npm run test-tsx",
"test-typescript": "cd typescript && tree-sitter test && script/parse-examples",
"test-tsx": "cd tsx && tree-sitter test",
"test-windows": "pushd typescript && tree-sitter test && popd && pushd tsx && tree-sitter test"
}
}

@@ -7,4 +7,11 @@ tree-sitter-typescript

TypeScript grammar for [tree-sitter][].
TypeScript and TSX grammars for [tree-sitter][].
Because TSX and TypeScript are actually two different dialects, this module defines two grammars. Require them as follows:
```js
require('tree-sitter-typescript/typescript'); // TypeScript grammar
require('tree-sitter-typescript/tsx'); // TSX grammar
```
[tree-sitter]: https://github.com/tree-sitter/tree-sitter

@@ -11,0 +18,0 @@

@@ -1,11 +0,5 @@

interface A {
/**
* description
*/
func (x: string): void
/**
* description
*/
(x: string): void
}
<Query<taskListItem, taskListItemVariables>
query={TASK_LIST_ITEM}
variables={{ id }}
>
</Query>

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