mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-16 18:07:02 -04:00
Make typescript happy, tsc test run in CI
This commit is contained in:
parent
5610df8b37
commit
a89e17a390
11 changed files with 45 additions and 36 deletions
|
@ -1,5 +1,5 @@
|
|||
export class ChangeList<T>{
|
||||
private set = new Set<T>;
|
||||
private set = new Set<T>();
|
||||
|
||||
public get changeCount() {
|
||||
return this.set.size;
|
||||
|
|
|
@ -28,7 +28,7 @@ export function lazyWebpack<T = any>(filter: FilterFn): T {
|
|||
construct: (_, args, newTarget) => Reflect.construct(getMod(), args, newTarget),
|
||||
deleteProperty: (_, prop) => delete getMod()[prop],
|
||||
defineProperty: (_, property, attributes) => !!Object.defineProperty(getMod(), property, attributes)
|
||||
}) as T;
|
||||
}) as any as T;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -12,7 +12,8 @@ export async function toggle(isEnabled: boolean) {
|
|||
VencordNative.ipc.on(IpcEvents.QUICK_CSS_UPDATE, (_, css: string) => style.innerText = css);
|
||||
style.innerText = await VencordNative.ipc.invoke(IpcEvents.GET_QUICK_CSS);
|
||||
}
|
||||
} else style.disabled = !isEnabled;
|
||||
} else // @ts-ignore yes typescript, property 'disabled' does exist on type 'HTMLStyleElement' u should try reading the docs some time
|
||||
style.disabled = !isEnabled;
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue