UNPKG

n4s

Version:

typed schema validation version of enforce

20 lines (13 loc) 553 B
import { RuleInstance } from '../utils/RuleInstance'; export interface ObjectRuleInstance extends RuleInstance<object, [object]> {} export interface KeyOfRuleInstance extends RuleInstance< string | number | symbol, [string | number | symbol] > {} export interface ValueOfRuleInstance<T> extends RuleInstance<T, [T]> {} export type ObjectRulesUnion = | ObjectRuleInstance | KeyOfRuleInstance | ValueOfRuleInstance<any>; export { isKeyOf, isNotKeyOf } from './object/isKeyOf'; export { isValueOf, isNotValueOf } from './object/isValueOf';