UNPKG

contensis-core-api

Version:

A dependency library used by contensis-delivery-api and contensis-management-api

23 lines (22 loc) 948 B
import { MapperFn } from './models'; export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; export declare function hasProp(o: any, key: string): boolean; export declare function toQuery(values: { [key: string]: any; }, dontSort?: boolean): string; export declare function isString(obj: any): boolean; /** Checks if the runtime context is a browser */ export declare function isBrowser(): boolean; /** * Checks if the current browser is IE. * * Support: IE 9-11 only * documentMode is an IE-only property * http://msdn.microsoft.com/en-us/library/ie/cc196988(v=vs.85).aspx */ export declare function isIE(): boolean; /** Checks if the runtime context is Node.js */ export declare function isNodejs(): boolean; export declare let defaultMapperForLanguage: MapperFn; export declare let defaultMapperForPublishedVersionStatus: MapperFn; export declare let defaultMapperForLatestVersionStatus: MapperFn;