-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose cursor method in napi #615
Expose cursor method in napi #615
Conversation
🦋 Changeset detectedLatest commit: 73ebd6c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
e58579e
to
3f9332d
Compare
} | ||
export class TokenNode { | ||
get type(): NodeType.Token; | ||
get kind(): TokenKind; | ||
get textLength(): TextIndex; | ||
get text(): string; | ||
get cursor(): Cursor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest adding a unit test that checks/asserts the cursor results in TypeScript.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to do that with the Iter
work. But I will add a gumby test at least.
1e8ea50
to
73ebd6c
Compare
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or [setup this action to publish automatically](https://github.com/changesets/action#with-publishing). If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @nomicfoundation/[email protected] ### Patch Changes - [#615](#615) [`06cbbe8`](06cbbe8) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - `cursor` method is now exposed in Typescript API Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
No description provided.