UNPKG

typia

Version:

Superfast runtime validators with only one line

8 lines (6 loc) 227 B
import { ILlmSchema } from "@typia/interface"; import { LlmJson } from "@typia/utils"; export const _coerceLlmArguments = <T>( value: unknown, parameters: ILlmSchema.IParameters, ): T => LlmJson.coerce(value, parameters);