UNPKG

@microsoft.azure/autorest.incubator

Version:
19 lines 976 B
import { Dictionary } from '#common/dictionary'; export interface PathReference<T> { $ref: string; } export interface Dereferenced<T> { instance: T; name?: string; } export declare type Reference<T> = T; export declare type Refable<T> = T | PathReference<T>; export declare type Optional<T> = T | undefined; export declare function typeOf(obj: any): "string" | "number" | "boolean" | "symbol" | "undefined" | "function" | "object" | "array"; /** identifies if a given refable is a reference or an instance */ export declare function isReference<T>(item: Refable<T>): item is PathReference<T>; /** gets an object instance for the item, regardless if it's a reference or not. */ export declare function dereference<T>(document: any, item: Refable<T>, stack?: string[]): Dereferenced<T>; export declare function clone(object: any): any; export declare function getExtensionProperties(dictionary: Dictionary<any>): Dictionary<any>; //# sourceMappingURL=common.d.ts.map