Skip to content

Commit

Permalink
Fix typings (#147)
Browse files Browse the repository at this point in the history
* Fix index.d.ts

* Update index.d.ts
  • Loading branch information
Saiv46 authored Aug 14, 2023
1 parent 04304f1 commit 9126834
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ declare abstract class ProtodefBaseCompiler {
addContextType(type: string, fn: CallableFunction): void
addParametrizableType(type: string, maker: CallableFunction): void
addTypes(types: { [key: string]: [TypeDefKind, CallableFunction] }): void
addProtocol(protocolData: Protocol, path: string): void
addProtocol(protocolData: Protocol, path: string[]): void
protected addTypesToCompile(types: any): void
protected indent(code: string, indent: string): string
protected getField(name: string): any
Expand All @@ -85,7 +85,7 @@ declare class ProtodefCompiler {
writeCompiler: ProtodefWriteCompiler
sizeOfCompiler: ProtodefSizeOfCompiler
addTypes(types: { [key: string]: [TypeDefKind, CallableFunction] }): void
addProtocol(protocolData: Protocol, path: string): void
addProtocol(protocolData: Protocol, path: string[]): void
protected addTypesToCompile(types: any): void
addVariable(key: string, val: any): void
compileProtoDefSync(options?: { printCode?: boolean }): CompiledProtoDef
Expand Down Expand Up @@ -136,11 +136,11 @@ declare module 'protodef' {
parsePacketBuffer(packet: any): Buffer
}
export const Compiler: {
ReadCompiler: ProtodefReadCompiler
WriteCompiler: ProtodefWriteCompiler
SizeOfCompiler: ProtodefSizeOfCompiler
ProtoDefCompiler: ProtodefCompiler
CompiledProtodef: CompiledProtodef
ReadCompiler: typeof ProtodefReadCompiler
WriteCompiler: typeof ProtodefWriteCompiler
SizeOfCompiler: typeof ProtodefSizeOfCompiler
ProtoDefCompiler: typeof ProtodefCompiler
CompiledProtodef: typeof CompiledProtodef
}
export const utils: {
getField(countField: string, context: object): any | undefined
Expand Down

0 comments on commit 9126834

Please sign in to comment.