mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-09 06:14:30 +08:00
粒子特效
This commit is contained in:
1 parent
29b4dd13e2
commit
6a667d4ff7
8 files changed
+666
-50
No files matched your search
Vendored
+4
-4
@@ -822,12 +822,12 @@ type DeepReadonly<T> = {
|
||||
};
|
||||
|
||||
/**
|
||||
* 深度可选一个对象,使其所有属性都
|
||||
* 深度可选一个对象,使其所有属性都可选
|
||||
*/
|
||||
type DeepPartial<T> = {
|
||||
[P in keyof T]?: T[P] extends number | string | boolean
|
||||
? T[P]
|
||||
: DeepReadonly<T[P]>;
|
||||
: DeepPartial<T[P]>;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -836,7 +836,7 @@ type DeepPartial<T> = {
|
||||
type DeepRequired<T> = {
|
||||
[P in keyof T]-?: T[P] extends number | string | boolean
|
||||
? T[P]
|
||||
: DeepReadonly<T[P]>;
|
||||
: DeepRequired<T[P]>;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -852,7 +852,7 @@ type Writable<T> = {
|
||||
type DeepWritable<T> = {
|
||||
-readonly [P in keyof T]: T[P] extends number | string | boolean
|
||||
? T[P]
|
||||
: DeepReadonly<T[P]>;
|
||||
: DeepWritable<T[P]>;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user