Initial commit: igny8 project

This commit is contained in:
igny8
2025-11-09 10:27:02 +00:00
commit 60b8188111
27265 changed files with 4360521 additions and 0 deletions

24
frontend/node_modules/@react-dnd/asap/src/RawTask.ts generated vendored Normal file
View File

@@ -0,0 +1,24 @@
// We wrap tasks with recyclable task objects. A task object implements
import type { Task, TaskFn } from 'types'
// `call`, just like a function.
export class RawTask implements Task {
public task: TaskFn | null = null
public constructor(
private onError: (err: any) => void,
private release: (t: RawTask) => void,
) {}
public call() {
try {
this.task && this.task()
} catch (error) {
this.onError(error)
} finally {
this.task = null
this.release(this)
}
}
}