mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 20:59:37 +08:00
30 lines
725 B
TypeScript
30 lines
725 B
TypeScript
// 这里包含所有插件导出的函数及变量声明,声明的函数会在类型标注中标注到core上
|
||
|
||
type CanParseCss = keyof {
|
||
[P in keyof CSSStyleDeclaration as CSSStyleDeclaration[P] extends string
|
||
? P extends string
|
||
? P
|
||
: never
|
||
: never]: CSSStyleDeclaration[P];
|
||
};
|
||
|
||
interface PluginDeclaration {
|
||
init(): void;
|
||
_afterLoadResouce(): void;
|
||
}
|
||
|
||
type Forward<T> = {
|
||
[K in keyof T as T[K] extends Function
|
||
? K extends `_${string}`
|
||
? never
|
||
: K
|
||
: never]: T[K];
|
||
};
|
||
|
||
type ForwardKeys<T> = keyof Forward<T>;
|
||
|
||
declare const Mota: import('../game/system').IMota;
|
||
interface Window {
|
||
Mota: import('../game/system').IMota;
|
||
}
|