@platform/cell.client
Version:
A strongly typed HTTP client for operating with a CellOS service end-point.
20 lines (19 loc) • 528 B
JavaScript
import { HttpClient } from '../Client.http';
import { saveMonitor, typesystem } from '../Client.typesystem';
import { TypeSystem } from '../common';
export class Client {
static http(input) {
return Client.Http.create(input);
}
static env(env) {
return typesystem({
http: env.host,
event$: env.event$,
cache: env.cache,
});
}
}
Client.Http = HttpClient;
Client.TypeSystem = TypeSystem;
Client.saveMonitor = saveMonitor;
Client.typesystem = typesystem;