Skip to content

Instantly share code, notes, and snippets.

View severi's full-sized avatar

Severi Haverila severi

View GitHub Profile
import { z } from 'zod';
const VehicleSchema = z.object({
id: z.string(),
itemType: z.literal('VEHICLE'),
licencePlateNumber: z.string(),
});
const HouseSchema = z.object({
id: z.string(),
(function() {
"use strict";
var a = function(a) {
var b, c;
for (var d = 1, e = arguments.length; d < e; d++) {
b = arguments[d];
for (c in b) {
if (Object.prototype.hasOwnProperty.call(b, c)) {
a[c] = b[c]
}