tree-sitter / node-tree-sitter

Node.js bindings for tree-sitter
https://www.npmjs.com/package/tree-sitter
MIT License
649 stars 114 forks source link

Add bufferSize and includedRanges options to parse function in TS def #63

Closed thibaultdalban closed 4 years ago

thibaultdalban commented 4 years ago

The function signature of Parser.prototype.parse defined in index.js

Parser.prototype.parse = function(input, oldTree, {bufferSize, includedRanges}={})

accepts a third optional parameter. This commit reflects the signature in TypeScript definition.

depends on #64

maxbrunsfeld commented 4 years ago

Thanks!