ItemConsulting / enonic-types

TypeScript types for Enonic XP
MIT License
8 stars 2 forks source link

Type for node library doesnt correctly mirror the code #3

Closed itemodahl closed 4 years ago

itemodahl commented 4 years ago

A couple of things:

There is only two functions directly under lib-node: connect and multiRepoConnect. The functions get, delete, update etc, should instead be moved into the type of RepoConnection.

Some of the RepoConnection functions have either a string or an array of strings as an argument, and depending on what is used, either an object or an array of object is returned. Could this be mirrored in the types?

tajakobsen commented 4 years ago

Closing task since this was addressed in: 28f95491d29ba33ef0e18b789adb5fcdd3f55801