mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2024-12-21 19:08:24 +01:00
Cleanup after merge
This commit is contained in:
parent
01bc1b0303
commit
02957f7757
6
shared-operations/declarations/Action.d.ts
vendored
6
shared-operations/declarations/Action.d.ts
vendored
@ -1,5 +1,9 @@
|
||||
export interface Action {
|
||||
values: any;
|
||||
protected values: any;
|
||||
type: string;
|
||||
actions?: Action[];
|
||||
}
|
||||
|
||||
export interface WaitAction extends Action {
|
||||
values: { id: number }
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
export interface Operation {
|
||||
protected values: any;
|
||||
type: string;
|
||||
operations?: Operation[];
|
||||
}
|
||||
|
||||
export interface WaitOperation extends Operation {
|
||||
values: { id: number }
|
||||
}
|
5
shared-operations/declarations/PDF.d.ts
vendored
5
shared-operations/declarations/PDF.d.ts
vendored
@ -1,5 +0,0 @@
|
||||
export interface PDF {
|
||||
originalFileName: string;
|
||||
fileName: string;
|
||||
buffer: Uint8Array;
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
import { organizeWaitOperations } from "./organizeWaitOperations";
|
||||
import { Action } from "../../declarations/Action";
|
||||
import { Action, WaitAction } from "../../declarations/Action";
|
||||
import { OperationsType } from "../../src/index";
|
||||
import { PdfFile } from "../wrappers/PdfFile";
|
||||
|
||||
@ -34,7 +34,7 @@ export async function * traverseOperations(operations: Action[], input: PdfFile[
|
||||
case "done": // Skip this, because it is a valid node.
|
||||
break;
|
||||
case "wait":
|
||||
const waitOperation = waitOperations[action.values.id];
|
||||
const waitOperation = waitOperations[(action as WaitAction).values.id];
|
||||
|
||||
if(Array.isArray(input)) {
|
||||
waitOperation.input.concat(input); // TODO: May have unexpected concequences. Needs further testing!
|
||||
|
Loading…
Reference in New Issue
Block a user