-
Notifications
You must be signed in to change notification settings - Fork 95
refactor: remove Unexpected any
in 2 locations
#4913
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
base: main
Are you sure you want to change the base?
refactor: remove Unexpected any
in 2 locations
#4913
Conversation
|
@hamirmahal is attempting to deploy a commit to the FED Team Team on Vercel. A member of the Team first needs to authorize it. |
@@ -24,7 +24,7 @@ const dateString = { | |||
string | |||
>, | |||
) => (params.value == null ? "" : params.value), | |||
dataTypeMatcher: (value: any) => | |||
dataTypeMatcher: (value: string) => | |||
typeof value === "string" && !!value.match("\\d{2}/\\d{2}/\\d{4}"), |
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.
typeof value === "string" && !!value.match("\\d{2}/\\d{2}/\\d{4}"), | |
!!value.match("\\d{2}/\\d{2}/\\d{4}"), |
I thought about removing typeof value === "string"
after changing the type of value
to string
, but that could cause runtime errors for consumers doing unsafe things like dataTypeMatcher(input as string)
.
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.
Good change! Can you also check files in site/src/examples/ag-grid-theme
, which is the source code for examples on Salt website.
CLA confirmed before.
c0bb2cf
to
19d8a94
Compare
Thanks! And sure. |
19d8a94
to
94b3c94
Compare
94b3c94
to
6ff2fdc
Compare
Need @joshwooding help on authorize Vercel |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
6ff2fdc
to
82caeb2
Compare
Fixes #4912