Sha256: e0181c2956fc5288099405cbfc2773f3a7a34c3917441b1a4f91c363c2ec0387
Contents?: true
Size: 575 Bytes
Versions: 2
Compression:
Stored size: 575 Bytes
Contents
import { ShatterClient } from 'shatter-client' interface ShatterResult { result: string | number | Array<any> | object, error: string | null uuid: string } class AppClient { client: ShatterClient; constructor(host: string){ this.client = new ShatterClient(host) } async makeRequest<responseType>(operation : string, params : object) : Promise<responseType> { return await this.client.invokeRPC(operation,params) as responseType; } } class Client extends AppClient { <%= function_defs.map(&:to_typescript).join("\n") %> } export default Client;
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shatter-rb-0.1.1 | templates/service_client.ts.erb |
shatter-rb-0.1.0 | templates/service_client.ts.erb |