import type { Static, TSchema } from "typebox"; import { Check } from "typebox/value"; import type { SettingValue } from "../protocol/settings.ts"; export function checkSchema( schema: Schema, value: SettingValue, ): value is SettingValue & Static { return Check(schema, value); }