chore: upgrade package-lock and fix breaking changes
This commit is contained in:
@@ -9,7 +9,7 @@ const useTranslate = () => {
|
||||
values?: Parameters<typeof intl.formatMessage>[1],
|
||||
opts?: Parameters<typeof intl.formatMessage>[2],
|
||||
) => {
|
||||
return intl.formatMessage({ id }, values, opts) as string;
|
||||
return intl.formatMessage({ id }, values, opts) as unknown as string;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -32,7 +32,7 @@ export const translateOutsideContext = () => {
|
||||
values?: Parameters<typeof intl.formatMessage>[1],
|
||||
opts?: Parameters<typeof intl.formatMessage>[2],
|
||||
) => {
|
||||
return intl.formatMessage({ id }, values, opts) as string;
|
||||
return intl.formatMessage({ id }, values, opts) as unknown as string;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user