UNPKG

@contract-case/case-plugin-dsl-types

Version:

Types for writing the definition DSL for plugins for the ContractCase test framework

25 lines 803 B
import { AnyCaseMatcherOrData } from './matchers.types'; /** * The type constant for a lookup matcher * @internal */ export declare const LOOKUP_MATCHER_TYPE: "_case:Lookup"; /** * The matcher descriptor for a lookupable matcher * * @public */ export interface LookupableMatcher { '_case:matcher:type': typeof LOOKUP_MATCHER_TYPE; '_case:matcher:uniqueName': string; '_case:matcher:child'?: AnyCaseMatcherOrData; } /** * Determines if a specific matcher or data is a lookupable matcher * @public * * @param maybeMatcher - the matcher or data in question * @returns true if `maybeMatcher` is a lookupable matcher, false otherwise */ export declare const isLookupableMatcher: (maybeMatcher: unknown) => maybeMatcher is LookupableMatcher; //# sourceMappingURL=lookup.types.d.ts.map