Tyler Hallada
eebae85a65
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.
8 lines
237 B
TypeScript
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;
|
|
}
|
|
} |