-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Position vs Point #5
Comments
Ah yeah, thanks. Reason is that we didn’t have a term to differentiate between the two when this project was created.. PR welcome to a) fix the docs, b) add a |
declare namespace vfileLocation {
type Position = Pick<Point, 'line' | 'column'>
//...
toOffset: (position: Position) => Offset any hint how this would be changed? |
For a) do nothing. declare namespace vfileLocation {
type Point = Pick<unist.Point, 'line' | 'column'>
/** @deprecated */
type Position = Point
//...
toOffset: (position: Point) => Offset |
@muescha What do you think, are you interesting and able to work on a PR? |
it was out of my scope - i will give it a try |
- `toPosition` is considered deprecated Closes GH-5.
Closes GH-5. Closes GH-6. Reviewed-by: Christian Murphy <[email protected]>
the readme is confusing.
the function expect an
unist.Point
instead ofunist.Position
there should be this notation change for readme:
Position
toPoint
PS: i think the refactor the function name
toPosition
totoPoint
would be harderThe text was updated successfully, but these errors were encountered: