-
Hello, I am trying to add constructor(args) {
super(args);
} to my layers for the purpose of auto-generating types for TypeScript. It seems to work only when I change all of my layer calls in return new Layer(this.props, {
prop1: value,
...
}) to return new Layer({
...this.props,
prop1: value,
....
}) I think it has something to do with deck.gl/modules/core/src/lifecycle/component.js Lines 11 to 29 in c53f30e |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Figured it out - I had to change
to constructor(props) {
// needed for TypeScript types that are generated from the JSDoc
super(...arguments);
} Sorry, silly error! |
Beta Was this translation helpful? Give feedback.
-
@ilan-gold We are interested in adding typescript typings to deck.gl. We have already done so for the remaining vis.gl frameworks. If you are working on this perhaps we can collaborate? |
Beta Was this translation helpful? Give feedback.
Figured it out - I had to change
to
Sorry, silly error!