© 2026 Hedgehog Software, LLC
import { type } from "arktype"; export const profileData = type({ firstName: 'string', lastName: 'string', 'avatar?': 'string' }); export type ProfileData = typeof profileData.infer
const data = profileData.partial()({ firstName: 'John', lastName: 'Doe' });
avatar must be a string (was undefined)
const data = profileData.partial()({ firstName: 'John', lastName: 'Doe', avatar: undefined });
const data: ArkErrors | { firstName?: string | undefined; lastName?: string | undefined; avatar?: string | undefined; }