From c8d2e0465980d28cc29052513517a71188ce9d82 Mon Sep 17 00:00:00 2001 From: Panu Horsmalahti Date: Fri, 2 Jan 2015 15:48:06 +0200 Subject: [PATCH] Fix the tests and export interfaces --- protobuf/protobuf-tests.ts | 1 + protobuf/protobuf.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/protobuf/protobuf-tests.ts b/protobuf/protobuf-tests.ts index 7b910d380..077522900 100644 --- a/protobuf/protobuf-tests.ts +++ b/protobuf/protobuf-tests.ts @@ -1,4 +1,5 @@ /// +/// import ProtoBuf = require("protobufjs"); diff --git a/protobuf/protobuf.d.ts b/protobuf/protobuf.d.ts index bbd4736c8..5e758e7a4 100644 --- a/protobuf/protobuf.d.ts +++ b/protobuf/protobuf.d.ts @@ -4,11 +4,11 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped declare module ProtoBuf { - interface IBuilder { + export interface IBuilder { build: () => T; } - interface IProtoBufMessage { + export interface IProtoBufMessage { toArrayBuffer(): ArrayBuffer; toBuffer(): Buffer; }