-
Notifications
You must be signed in to change notification settings - Fork 8
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
Another chunk of lint issues #45
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
See comments
@@ -8,10 +8,12 @@ import DialogTitle from "@material-ui/core/DialogTitle"; | |||
import TextField from "@material-ui/core/TextField"; | |||
import React, { useState } from "react"; | |||
|
|||
export type ConfirmValue = "undefined" | "load" | "replace" | "nevermind" |
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.
All of the generics in this and ConfirmDialogProvider
were around taking these value
values and making sure that they were tracked by the typesystem. I got to a place where typescript was complaining that two apparently-identical types were distinct and therefore not assignable to each other. I made the decision that it wasn't worth the complexity, in favor of explicitly typing the ConfirmValue
.
The downside of this approach is that this enumeration needs to change every time that a new desired value for value
is added, but given the way we're matching on the values, that's probably okay.
All other changes in these files are propagating this change.
Go: new () => { | ||
importObject: WebAssembly.Imports; | ||
run: (instance: object) => void; | ||
}; | ||
Crate: new (options: Options) => Crate; |
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 adds some window typing for our Go
and discord Crate
usages.
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.
🚀
Description
Still knocking out lint issues.
Changes
Testing
Review.