benjamn / benjamn/ast-types

How to add 'Range' property to base Printable definition?

Open
#356 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
194
Avg merge
22h 43m
Merged PRs (30d)
10

Description

Hello,

Judging from the node extension ability with builders, this looks like it should be possible, but after about an hour of fiddling, the property doesn't show in my typescript type checking.

Any chance of a quick example as to how one would achieve this?

Esprima attaches a `Range` property (which is an array of numbers) to each node if the user requests it.

Thanks

Marlon

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files or tests. Start by tracing the TypeScript definitions for the base Printable type and the node extension or builder mechanism; done means providing a documented example showing how to expose Esprima’s optional Range number array for type checking.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.