Hi,
latest implementation of 5.4.1 has removed namespace implementation of Http from:
node_modules/@daypilot/daypilot-lite-angular/lib/core/daypilot-core.d.ts
//from /node_modules/@daypilot/daypilot-lite-angular/lib/core/daypilot-core.d.ts
namespace Http { }
npm dev environment provides error:
….
TS2694: Namespace 'Http' has no exported member 'Result'
node_modules/@daypilot/daypilot-lite-angular/lib/core/daypilot-core.d.ts:1246:84:
1246 │ ...: string, params?: Http.RequestParams): Promise<Http.Result<T>>;
~~~~~~
….
Compared to Javascript:
//from /node_modules/@daypilot/daypilot-lite-javascript/daypilot-javascript.min.d.ts
namespace Http {
interface RequestParams { contentType?: string; headers?: Record<string, string>; }
interface Result<T = any> { request: XMLHttpRequest; data?: T; }
}
Fix: adding Http namespace contents to /node_modules/@daypilot/daypilot-lite-angular/lib/core/daypilot-core.d.ts fixed issue.
ADD into namespace Http:
interface RequestParams { contentType?: string; headers?: Record<string, string>; }
interface Result<T = any> { request: XMLHttpRequest; data?: T; }