Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/jamf_school/schemas/mod.ts>assertValid

A simple, secure, correct, and modern Jamf School API wrapper. (Unofficial)
Latest
function assertValid
import { assertValid } from "https://deno.land/x/jamf_school@0.5.0/schemas/mod.ts";

Assert that the data is valid using the validator for the given route.

Type Parameters

E extends Endpoint

Parameters

route: E
data: unknown

Returns

asserts data is RouteData<E>