extract server transform and validation helpers
This commit is contained in:
parent
aea2c9d56b
commit
e79bc2e339
10 changed files with 373 additions and 139 deletions
10
server/validation.d.ts
vendored
Normal file
10
server/validation.d.ts
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
export function validatePayload(
|
||||
payload: unknown,
|
||||
type: string,
|
||||
rootKey: string,
|
||||
requiredIdKeyByType: Record<string, string>,
|
||||
): string | null;
|
||||
export function validateCatalogMetaPayload(
|
||||
payload: unknown,
|
||||
frozenCatalogKeys: string[],
|
||||
): string | null;
|
||||
Loading…
Add table
Add a link
Reference in a new issue