UNPKG

fastify-mongoose-rest

Version:

Rest API generator tools for fastify and mongoose

10 lines (9 loc) 428 B
/** * Try safely to parse input to object. Return string if not possible. */ export declare function parseInput(input: string): any; export declare function createResponseSchema(schema: object, type: 'object' | 'array'): Record<number, unknown>; /** * Update properties of object recursively. */ export declare function updatePropertiesRecursive(obj: Record<string, any>, changes: Record<string, any>): Record<string, any>;