UNPKG

type-r2

Version:

Serializable, validated, and observable data layer for modern JS applications

13 lines (12 loc) 582 B
import { IOEndpoint, IOOptions, IOPromise } from 'type-r'; export declare function create(): AttributesEndpoint; export { create as attributesIO }; export declare class AttributesEndpoint implements IOEndpoint { create(json: any, options: IOOptions): IOPromise<any>; update(id: any, json: any, options: IOOptions): IOPromise<any>; read(id: any, options: IOOptions, record: any): IOPromise<any>; destroy(id: any, options: IOOptions): IOPromise<any>; list(options?: IOOptions): IOPromise<any>; subscribe(events: any): any; unsubscribe(events: any): any; }