Closed alex-laycalvert closed 1 year ago
Any chance someone could look at this and clarify the return type for detachFrom
function and get this merged? @adam-cowley
Any chance this will at least get looked at?
Sure, it looks like it should be detachFrom(other): Promise<[Node, Node]>;
Side note, I'd love to know how you're using neode. Drop me an email at adam at neo4j dot com
Thank you so much, I also need to add in a definition for NodeCollection
to have a proper iterator so I can use it in for (const thing of things) ...
All of the type definitions for those two problems are added and when using it in a typescript project there's no more errors.
The
detachFrom()
node function was missing from the types. The function docs only specify aPromise
as a return so I'm not sure what type it returns exactly. Left it as returningPromise<any>
and aTODO
message.Really needed this for use with typescript.