import Type from './Type'; import Validation, { IdentifierPath } from '../Validation'; import RuntimeTypeErrorItem from '../errorReporting/RuntimeTypeErrorItem'; export default class ObjectTypeProperty extends Type { typeName: string; readonly key: K; readonly value: Type; readonly optional: boolean; __objectType: Type; constructor(key: K, value: Type, optional: boolean); clone(): ObjectTypeProperty; /** * Determine whether the property exists on the given input or its prototype chain. */ existsOn(input: Record): boolean; errors(validation: Validation, path: IdentifierPath, input: any): Iterable; accepts(input: Record): input is any; toString(): string; }