Files
DefinitelyTyped/types/thrift/thrift-tests.ts
2017-04-18 14:41:23 -04:00

11 lines
362 B
TypeScript

import * as Thrift from 'thrift';
const fakeGeneratedService: any = {};
const fakeServiceMethods: any = {};
const fakeConnectionParams: any = {};
Thrift.createServer(fakeGeneratedService, fakeServiceMethods);
const clientConnection = Thrift.createConnection('0.0.0.0', 1234, fakeConnectionParams);
Thrift.createClient(fakeGeneratedService, clientConnection);