mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-27 06:22:55 +08:00
11 lines
362 B
TypeScript
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);
|