UNPKG

@etsoo/appscript

Version:

Applications shared TypeScript framework

23 lines (22 loc) 352 B
/** * SmartERP base API */ export class BaseApi { app; api; /** * API Last error */ get lastError() { return this.api.lastError; } /** * Constructor * @param app Application * @param api API */ constructor(app, api = app.api) { this.app = app; this.api = api; } }