Extend tcType #1205
Unanswered
CharlieSnowCode
asked this question in
Q&A
Extend tcType
#1205
Replies: 1 comment 5 replies
-
Hi @CharlieSnowCode, I haven't tried with typescript. But can you try to compile the typescript file to a js file and attach the js file? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking to write custom filters in TypeScript. Since we can only include JavaScript files in a project, I would like to have the JS function call a TS function. I started by implementing a new function in tc-types.d.ts When I call it from my custom .js file, I get intellisense, but when I run it I get "Error in Custom Filter: x - x is not a function".
Has anyone been able to add a .ts file to a project and use it from your custom filter?
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions