1
0
Fork 0
Code Issues Pull requests Projects Releases Packages Wiki Activity Actions Pages

extract server transform and validation helpers

This commit is contained in:
super-jalawii 2026-06-27 11:10:23 -04:00
parent aea2c9d56b
commit e79bc2e339
10 changed files with 373 additions and 139 deletions

10
server/validation.d.ts vendored Normal file
View 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;