UNPKG

@scalar/api-client

Version:

the open source API testing client

15 lines 606 B
type RemoveCircularOptions = { /** Prefix to add before the path in $ref values */ prefix?: string; }; /** * Recursively processes an object and replaces circular references with JSON Reference objects. * When a circular reference is detected, it returns `{ $ref: "#/path/to/original" }`. * * @param obj - The object to process * @param options - Configuration options * @returns A new object with circular references replaced by $ref pointers */ export declare const removeCircular: <T>(obj: T, options?: RemoveCircularOptions) => T; export {}; //# sourceMappingURL=remove-circular.d.ts.map