@@ -58,7 +58,7 @@ declare abstract class ProtodefBaseCompiler {
5858 addContextType ( type : string , fn : CallableFunction ) : void
5959 addParametrizableType ( type : string , maker : CallableFunction ) : void
6060 addTypes ( types : { [ key : string ] : [ TypeDefKind , CallableFunction ] } ) : void
61- addProtocol ( protocolData : Protocol , path : string ) : void
61+ addProtocol ( protocolData : Protocol , path : string [ ] ) : void
6262 protected addTypesToCompile ( types : any ) : void
6363 protected indent ( code : string , indent : string ) : string
6464 protected getField ( name : string ) : any
@@ -85,7 +85,7 @@ declare class ProtodefCompiler {
8585 writeCompiler : ProtodefWriteCompiler
8686 sizeOfCompiler : ProtodefSizeOfCompiler
8787 addTypes ( types : { [ key : string ] : [ TypeDefKind , CallableFunction ] } ) : void
88- addProtocol ( protocolData : Protocol , path : string ) : void
88+ addProtocol ( protocolData : Protocol , path : string [ ] ) : void
8989 protected addTypesToCompile ( types : any ) : void
9090 addVariable ( key : string , val : any ) : void
9191 compileProtoDefSync ( options ?: { printCode ?: boolean } ) : CompiledProtoDef
@@ -136,11 +136,11 @@ declare module 'protodef' {
136136 parsePacketBuffer ( packet : any ) : Buffer
137137 }
138138 export const Compiler : {
139- ReadCompiler : ProtodefReadCompiler
140- WriteCompiler : ProtodefWriteCompiler
141- SizeOfCompiler : ProtodefSizeOfCompiler
142- ProtoDefCompiler : ProtodefCompiler
143- CompiledProtodef : CompiledProtodef
139+ ReadCompiler : typeof ProtodefReadCompiler
140+ WriteCompiler : typeof ProtodefWriteCompiler
141+ SizeOfCompiler : typeof ProtodefSizeOfCompiler
142+ ProtoDefCompiler : typeof ProtodefCompiler
143+ CompiledProtodef : typeof CompiledProtodef
144144 }
145145 export const utils : {
146146 getField ( countField : string , context : object ) : any | undefined
0 commit comments