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.
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.