点光源

This commit is contained in:
AncTe committed 2023-02-05 18:17:10 +08:00
1 parent 3c7b5906f6
commit 5e0d8ac7d4
17 files changed
+1082 -51

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ interface Block<N extends Exclude<AllNumbers, 0> = Exclude<AllNumbers, 0>> {
/**
* 图块是否不可通行
*/
nopass: boolean;
noPass: boolean;
/**
* 图块高度
+7
View File
@@ -862,6 +862,11 @@ type SelectType<R, T> = {
[P in keyof R as R[P] extends T ? P : never]: R[P];
};
/**
* 从一个对象中选择类型是目标属性的键名
*/
type SelectKey<R, T> = keyof SelectType<R, T>;
/**
* 获取一段字符串的第一个字符
*/
@@ -883,3 +888,5 @@ type NonObjectOf<T> = SelectType<T, NonObject>;
* 以一个字符串结尾
*/
type EndsWith<T extends string> = `${string}${T}`;
type KeyExcludesUnderline<T> = Excluede<keyof T, `_${string}`>;