-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NOMERGE Add/Replace ts-ignore with ts-expect-error #647
base: master
Are you sure you want to change the base?
Conversation
examples/advanced/package.json
Outdated
"@deck.gl/layers": "^8.4.6", | ||
"@deck.gl/mesh-layers": "^8.4.6", | ||
"@deck.gl/react": "^8.4.6", | ||
"@deck.gl/core": "^8.6.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great that you are bumping these, but ideally this should be done in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will separate out.
@@ -123,7 +123,7 @@ export function getEditHandleStyle({ feature, shape, index, state }) { | |||
|
|||
switch (shape) { | |||
case 'circle': | |||
//@ts-ignore | |||
// @ts-ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not expect-error here?
examples/sf/example.js
Outdated
@@ -38,10 +38,10 @@ const styles = { | |||
export default class Example extends React.Component< | |||
{}, | |||
{ | |||
viewport: Object, | |||
viewport: Record<string, any>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not your doing, but it seems strange to me that we have typescript syntax in .js
files... Should these be renamed to .ts
?
@@ -107,13 +113,16 @@ describe('dragToDraw=false', () => { | |||
}, | |||
}; | |||
|
|||
// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a lot of expect-errors in the tests.... I don't think we should merge this.
Don't we just need to install some @types
package for jest? Or worst case "hand write" a small .d.ts
file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, a lot of this was automated. Adding @types/jest which will remove the need for these.
@igorDykhta Can you rebase and land this? |
yes |
No description provided.