Skip to content
Discussion options

You must be logged in to vote

Hello, 

Is there a way to reference a function in a non-child note?

No, not possible ATM. I've been thinking about being able to define module dependencies using relation but it was just never necessary. Cloning seems to work quite well for this and you can nicely see the dependency tree.

Is there a way to reference a function without requiring the child note name as a prefix?

No, you need to use the child note name. I think it's good practice to explicitly specify the module name.

Otherwise you can always do this:

const {myFunc} = childModule;

And then you can call it just like myFunc() instead of childModule.myFunc()

is it possible to export multiple functions from a backend script…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by eliandoran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1108 on July 01, 2025 20:58.