mirror of
https://github.com/apache/superset.git
synced 2026-04-26 19:44:58 +00:00
feat(fe): upgrade superset-frontend to Typescript v5 (#31979)
Signed-off-by: hainenber <dotronghai96@gmail.com> Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
This commit is contained in:
@@ -52,7 +52,10 @@ const collapseStyle = (theme: SupersetTheme) => css`
|
||||
const extractInvalidValues = (messages: object, payload: object): string[] => {
|
||||
const invalidValues: string[] = [];
|
||||
|
||||
const recursiveExtract = (messages: object, payload: object) => {
|
||||
const recursiveExtract = (
|
||||
messages: Record<string, any>,
|
||||
payload: Record<string, any>,
|
||||
) => {
|
||||
Object.keys(messages).forEach(key => {
|
||||
const value = payload[key];
|
||||
const message = messages[key];
|
||||
@@ -66,7 +69,10 @@ const extractInvalidValues = (messages: object, payload: object): string[] => {
|
||||
}
|
||||
});
|
||||
};
|
||||
recursiveExtract(messages, payload);
|
||||
recursiveExtract(
|
||||
messages as Record<string, any>,
|
||||
payload as Record<string, any>,
|
||||
);
|
||||
return invalidValues;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user