import { Schema } from "../../Schema"; export function property( rawKey: RawKey, valueSchema: Schema ): Property { return { rawKey, valueSchema, isProperty: true, }; } export interface Property { rawKey: RawKey; valueSchema: Schema; isProperty: true; } export function isProperty>(maybeProperty: unknown): maybeProperty is O { // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition return (maybeProperty as O).isProperty; }