Skip to content

fix: remove [] in Path#117

Open
standbyoneself wants to merge 1 commit intoYuriGor:masterfrom
standbyoneself:fix/path-type
Open

fix: remove [] in Path#117
standbyoneself wants to merge 1 commit intoYuriGor:masterfrom
standbyoneself:fix/path-type

Conversation

@standbyoneself
Copy link
Copy Markdown

This PR fixes type mismatch when using with TypeScript. Type Path already contains an Array<string | number>, so there is no need to add square brackets when annotate Path.

Also in documentation, for example, childrenPath is specified as string, which is impossible with current types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant