openapi-modifier
Version:
This package allows you to automate the process of modifying OpenAPI specifications by applying a set of predefined rules
4 lines (3 loc) • 452 B
TypeScript
export declare const getPathKeys: (path: string | Array<string> | undefined) => Array<string>;
export declare const getObjectPath: <SourceObject = any, Value = any>(sourceObject: SourceObject, path: string | Array<string> | undefined, sourcePath?: string | string[] | undefined) => Value;
export declare const setObjectProp: <SourceObject = any, Value = any>(sourceObject: SourceObject, path: string | Array<string> | undefined, value: Value) => void;