jakub791
jakub791
> I guess it'd be sufficient to detect the string is longer than 300 digits, grab the first 18 of them, and turn it into mantissa and exponent. Couldn't you...
> compatible Typescript is a superset of JavaScript, it is compatible. But because you set `target` to `es6` typescript only includes declarations for
> BigInt is available is TypeScript since 3.2. I'm not sure if it works with whatever ECMAScipt version is targeted though. > > https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-2.html#bigint We are targetting ES6 (AKA ES2015)...
```ts type MyReturnType unknown> = T extends (...args: never[]) => infer R ? R : never; ``` Need to use `never[]` instead of `unknown[]` for the parameters type, since the...