UNPKG

@contract-case/case-plugin-base

Version:

Plugin framework for writing plugins for the ContractCase test framework

15 lines 739 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isPassToMatcher = exports.isTypeContainer = void 0; /** * Type guard function that determines whether a ParameterType is a TypeContainer * or a plain string type. * * @param parameterType - The parameter type to check * @returns true if the parameter is a TypeContainer, false if it's a string */ const isTypeContainer = (parameterType) => typeof parameterType === 'object' && parameterType.kind === 'array'; exports.isTypeContainer = isTypeContainer; const isPassToMatcher = (parameterType) => typeof parameterType === 'object' && parameterType.kind === 'PassToMatcher'; exports.isPassToMatcher = isPassToMatcher; //# sourceMappingURL=types.js.map