typemap

import { isValid, v } from 'https://deno.land/x/typemap@v0.1.11/mod.ts'
import type {
  Static,
  TypeSchema,
} from 'https://deno.land/x/typemap@v0.1.11/mod.ts'

const schema = v.object({
  key: v.literal('value'),
})

const value = {
  key: 'value',
}

console.log(isValid(schema, value)) // true