mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-12-18 20:04:17 +01:00
16 lines
424 B
TypeScript
16 lines
424 B
TypeScript
import { Action } from "../../declarations/Action";
|
|
|
|
export function validateOperations(actions: Action[]): { valid: boolean, reason?: string} {
|
|
// TODO: Validate using inbuilt validators:
|
|
/*
|
|
validationResult = impose.validate()
|
|
if(validationResult.valid) {
|
|
// Check Next
|
|
}
|
|
else {
|
|
return validationResult.reason
|
|
}
|
|
*/
|
|
|
|
return { valid: true };
|
|
} |