mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 19:59:02 +08:00
12 lines
245 B
TypeScript
12 lines
245 B
TypeScript
/// <reference path="protobufjs.d.ts" />
|
|
|
|
import ProtoBuf = require("protobufjs");
|
|
|
|
ProtoBuf.loadProtoFile("test.proto", builder => {
|
|
builder.build();
|
|
|
|
var message: ProtoBuf.IProtoBufMessage;
|
|
message.toArrayBuffer();
|
|
message.toBuffer();
|
|
});
|