UNPKG

unmock-core

Version:

[![npm](https://img.shields.io/npm/v/unmock-core.svg)][npmjs] [![CircleCI](https://circleci.com/gh/unmock/unmock-js.svg?style=svg)](https://circleci.com/gh/unmock/unmock-js) [![codecov](https://codecov.io/gh/unmock/unmock-js/branch/dev/graph/badge.svg)](h

10 lines 757 B
import { OpenAPIObject, Parameter } from "./interfaces"; export declare function derefIfNeeded({ schema, absPath, }: { schema: OpenAPIObject; absPath: string; }): <T>(mightHaveReference: any) => T; export declare const getPathParametersFromPath: (path: string) => string[]; export declare const getPathParametersFromSchema: (schema: Record<string, import("loas3/dist/generated/full").PathItem>, path: string) => Parameter[]; export declare const buildPathRegexStringFromParameters: (path: string, schemaParameters: Parameter[], pathParameters: string[]) => string; export declare const getAtLevel: (nestedObj: any, level: number, filterFn?: ((key: string | undefined, value: any) => boolean) | undefined) => any[]; //# sourceMappingURL=util.d.ts.map