mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
I was surprised when I tried to spread a `Set` in TypeScript and the browser complained about `Set.slice()` not being defined. This is because TypeScript does not automatically enable support for iterators when targeting earlier ES versions, like we do in the browser, unless you use the `"downlevelIteration": true` compiler option. This injects some helpers into the necessary files for reading/spreading iterators, which can be stuffed behind an import statement with using the `"importHelpers": true` compiler option and include `tslib` in our dependencies. This is already a dependency of several of our packages, so it shouldn't cause any additional modules. |
||
---|---|---|
.. | ||
src | ||
test | ||
.babelrc | ||
package.json | ||
readme.md | ||
tsconfig.json | ||
yarn.lock |
datemath
Datemath string parser used in Kibana