mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-10 11:18:03 +08:00
feat: partial locale type
This commit is contained in:
@@ -241,6 +241,11 @@ const cn = {
|
||||
},
|
||||
};
|
||||
|
||||
export type LocaleType = typeof cn;
|
||||
type DeepPartial<T> = T extends object
|
||||
? {
|
||||
[P in keyof T]?: DeepPartial<T[P]>;
|
||||
}
|
||||
: T;
|
||||
export type LocaleType = DeepPartial<typeof cn>;
|
||||
|
||||
export default cn;
|
||||
|
Reference in New Issue
Block a user