UNPKG

@eldev/business-central-api

Version:

A Dynamics 365 Business Central client for TypeScript

20 lines 616 B
import type { StandardSchemaV1 } from "./standard-schema.js"; /** * Parse result for easier consumption */ export type ParseResult<T> = { data: T; issues?: undefined; } | { data?: undefined; issues: Array<{ message: string; path: string; }>; }; /** * Async schema parsing function that handles both sync and async validation * Based on the standard signature from standardschema.dev */ export declare function parseSchema<T extends StandardSchemaV1>(schema: T, input: unknown): Promise<ParseResult<StandardSchemaV1.InferOutput<T>>>; //# sourceMappingURL=parse-schema.d.ts.map