UNPKG

@hookflo/tern

Version:

A robust, scalable webhook verification framework supporting multiple platforms and signature algorithms

13 lines (12 loc) 414 B
import { BaseTemplate, UserSchema } from '../types'; export declare class SchemaValidator { validateSchema(userSchema: UserSchema, baseTemplate: BaseTemplate): { valid: boolean; errors: string[]; }; validateOutput(output: Record<string, unknown>, userSchema: UserSchema, baseTemplate: BaseTemplate): { valid: boolean; errors: string[]; }; private matchesType; }