first commit

This commit is contained in:
2026-03-30 09:39:59 +08:00
parent 6c52425fca
commit 5ac73d3c6d
4484 changed files with 1144395 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
// export type IModel<T> = {
// [P in keyof T]: T[P] extends Function
// ? '❌此处不能定义任何方法'
// : (
// T[P] extends Array<infer R>
// ? (
// R extends Function
// ? '❌此处不能定义任何方法'
// : T[P]
// )
// : T[P] // IModel<T[P]> 性能消耗大
// );
// };
// export type IStore<T> = {
// [P in keyof T]: T[P] extends Function
// ? T[P]
// : (
// T[P] extends Array<infer R>
// ? (
// R extends Function
// ? '❌此处不能定义任何方法'
// : IModel<T[P]>
// )
// : IModel<T[P]>
// );
// };
export type IModel<T> = {
[P in keyof T]: T[P] extends Function
? '❌此处不能定义任何方法'
: T[P];
};
// export type IStore<T> = {
// [P in keyof T]: T[P] extends Function
// ? T[P]
// : IModel<T[P]>;
// };
export type IStore<T> = {
[P in keyof T]: T[P];
};