import { record } from "https://deno.land/x/typeguardkit@0.33.0/mod.ts";
record
can be used to create a RecordAsserter
without specifying a
typeName
.
Example:
import { _string, Asserted, record } from "typeguardkit";
export const _RecordOfStringByString = record(_string, _string);
export type RecordOfStringByString = Asserted<
typeof _RecordOfStringByString
>;
Parameters
keyAsserter: KeyAsserter
valueAsserter: ValueAsserter