question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Type definitions are broken with latest TypeScript version (starting from 3.0.0)

See original GitHub issue

Upgrading TypeScript from 3.2.4 to 3.3.3 is causing the following problems:

node_modules/honeycomb-grid/dist/honeycomb.d.ts:1:44 - error TS2744: Type parameter defaults can only reference previously declared type parameters.

declare function defineGrid<T = HexFactory<T>>(Hex?: HexFactory<T>): GridFactory<Hex<T>>

node_modules/honeycomb-grid/dist/honeycomb.d.ts:36:27 - error TS2744: Type parameter defaults can only reference previously declared type parameters.

export class Grid<T = Hex<T>> extends Array<T> {

For more information please check this issue in the TypeScript repository.

Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
flauwekeulcommented, Mar 23, 2019

Thanks for reminding me 😅 I’ve just released 1.4.4

0reactions
anders-windcommented, Mar 23, 2019

Thanks 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript 3.0 — what has come? - ITNEXT
In TypeScript 3.0 we can identify just five changes affecting the way you can use the language. Only one of those is flagged...
Read more >
Announcing TypeScript 3.0 - Microsoft Developer Blogs
Despite the new big number, 3.0 has few breaking changes (meaning it should be very easy to upgrade) and introduces a new flexible...
Read more >
What TypeScript version is Visual Studio Code using? How to ...
In particular, I had been using TypeScript 1.8.10 and VSCode 1.4.0. I first updated VSCode to the latest version, which was 1.5.3. But...
Read more >
ts-custom-error - npm
doesn't work as expected in ES6 and is broken in Typescript. Use CustomError class. Simply extends and call super in you custom constructor....
Read more >
Documentation - TypeScript 4.7
TypeScript 4.7 Release Notes. ... Node.js supports a new setting in package.json called type . "type" can be set to either "module" or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found