UNPKG

@lagoshny/ngx-hateoas-client

Version:

This client used to develop `Angular 12+` applications working with RESTfulll server API with HAL/JSON response type (supports server implementation by Spring HATEOAS)

17 lines (16 loc) 650 B
export declare function isEmbeddedResource(object: any): boolean; export declare function isResource(object: any): boolean; export declare function isResourceCollection(object: any): boolean; export declare function isPagedResourceCollection(object: any): boolean; /** * Check that passed object has links property. * * @param object which need to check links property */ export declare function isResourceObject(object: any): object is object & Record<"_links", unknown>; /** * Defining resource type bypassed object. * * @param object that presumably is one of resource type */ export declare function getResourceType(object: any): string;