Artem Kobzar
Artem Kobzar
Hmm. We need to think about the way to declare the type in a comment. And the cost of the support of multiple comment syntax is too high. Need to...
And thank you all for your contribution ^_^.
Thank you a lot. We will try to choose a better decision for the community. And thank you for your opinion. I have the same one :)
> @JSMonk how would you type `createObj` manually? > > this does not work > > ```ts > const propertyName = 'propertyName' > > function createObj(key: _a, prop: _b): {...
> WhAT tHe TrIn? > > ```ts > const foo: string = 'foo' > const bar = 'bar' > > function createObj(key, prop) { > return { > [key]: prop...
Hmmm. I didn't catch a runtime error. Could you please explain the problem in detail?
Fixed in 0.0.45
Oh, thank you 🙏 . I will add it soon.
And we have an error, as I see in the playground. Or do I miss something?
No, it should. Because after we will use the `Array` constructor, we will have empty values inside. ```ts const arr: Array = new Array(3); if (arr.length > 0) { const...