refactor: remove electron-related code

This commit is contained in:
codytseng
2024-12-21 23:20:30 +08:00
parent bed8df06e8
commit 2b1e6fe8f5
200 changed files with 2771 additions and 8432 deletions

16
src/index.d.ts vendored Normal file
View File

@@ -0,0 +1,16 @@
interface Array<T> {
findLast(predicate: (value: T, index: number, obj: T[]) => boolean, thisArg?: any): T | undefined
}
interface PromiseConstructor {
any<T>(promises: Array<T | PromiseLike<T>>): Promise<T>
}
interface AggregateError extends Error {
errors: any[]
}
declare const AggregateError: {
prototype: AggregateError
new (errors: any[], message?: string): AggregateError
}