modmapper-web/webkitdirectory.d.ts
Tyler Hallada eebae85a65 Implement WorkerPool, use webkitdirectory input
WorkerPool speeds up processing of plugins by using more cores on separate threads. It terminates and recreates a worker after it finishes a task since web assembly seems to slow down a ton when a worker is reused (maybe memory becomes to large / unfragmented, idk).

I switched to the deprecated input tag with webkitdirectory since it is the only way to load a folder under the program files folder. Drag and drop might be another alternative, but I'd rather have a picker.
2022-03-04 23:49:14 -05:00

8 lines
237 B
TypeScript

import { AriaAttributes, DOMAttributes } from "react";
declare module 'react' {
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
// extends React's HTMLAttributes
webkitdirectory?: boolean | string;
}
}