Typescript, adding custom methods to op #394
Unanswered
aleixmorgadas
asked this question in
Show and tell
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have faced a challenge when adding custom functions using
addAggregateFunction
, for example, and make that method available so that Typescript doesn't complain.This is the way I did it:
File:
arquero-extensions.ts
File:
types/arquero-extensions.d.ts
File:
tsconfig.json
Example of usage:
Test:
Beta Was this translation helpful? Give feedback.
All reactions