UNPKG

@itwin/clash-detection-client

Version:

Clash Detection client for the iTwin platform

18 lines 799 B
/** Generic dictionary with string keys. */ export interface Dictionary<T> { [key: string]: T; } /** Abstraction for a single entity page returned by the API. */ export interface EntityCollectionPage<TEntity> { /** Current page entities. */ entities: TEntity[]; /** Function to retrieve the next page of the entities. If `undefined` the current page is last. */ next?: () => Promise<EntityCollectionPage<TEntity>>; } /** Wrapper type that makes all properties of `T` required recursively. */ export declare type RecursiveRequired<T> = Required<T> & { [P in keyof T]: RecursiveRequired<T[P]>; }; /** Function to query an entity page. */ export declare type EntityPageQueryFunc<TEntity> = () => Promise<EntityCollectionPage<TEntity>>; //# sourceMappingURL=UtilityTypes.d.ts.map