mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-23 07:55:07 +00: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 };
|
||
|
}
|