fix: use fork of joi with full features on browser

This commit is contained in:
sbplat
2024-02-05 12:15:01 -05:00
parent 829127c3f8
commit e7b4c93481
9 changed files with 43 additions and 10 deletions

View File

@@ -17,9 +17,9 @@ function Dynamic() {
const LoadingModule = import(`@stirling-pdf/shared-operations/src/functions/${selectedValue}`) as Promise<{ [key: string]: typeof Operator }>;
LoadingModule.then((Module) => {
const Operator = Module[capitalizeFirstLetter(selectedValue)];
const description = Operator.schema.describe(); // TODO: The browser build of joi does not include describe.
console.log(description);
const description = Operator.schema.describe();
console.log("abc", description);
// TODO: use description to generate fields
});
});