Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Use of any types makes library almost impossible to use #1076

Closed
garth opened this issue Apr 30, 2021 · 2 comments
Closed

Use of any types makes library almost impossible to use #1076

garth opened this issue Apr 30, 2021 · 2 comments

Comments

@garth
Copy link

garth commented Apr 30, 2021

Type of issue: (check with "[x]")

- [ ] New feature request
- [ ] Bug  
- [ ] Support request
- [x] DX improvement

Current behavior:

    nodesApi.listNodeChildren('-root-', untypedOptions)

options are of type any, there is no obvious way to discover or validate options.

Expected behavior:

    const nodes = await nodesApi.listNodeChildren('-root-', {
      relativePath: '/some/folder', // currently undocumented magic key that lets you list files in a folder
    })

Steps to reproduce the issue:

Node version (for build issues):

New feature request:

@eromano
Copy link
Contributor

eromano commented May 7, 2021

yep I agree many of the methods are autogenerated from the API explorer definition file we should first enhance this https://github.com/Alfresco/rest-api-explorer

@DenysVuika
Copy link
Contributor

Closing as a lot of typings were provided to make the API more usable with modern IDEs. We will continue improving the typescript coverage over time

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants