Path: blob/master/node_modules/@protobufjs/codegen/index.d.ts
1126 views
export = codegen;12/**3* Appends code to the function's body.4* @param [formatStringOrScope] Format string or, to finish the function, an object of additional scope variables, if any5* @param [formatParams] Format parameters6* @returns Itself or the generated function if finished7* @throws {Error} If format parameter counts do not match8*/9type Codegen = (formatStringOrScope?: (string|{ [k: string]: any }), ...formatParams: any[]) => (Codegen|Function);1011/**12* Begins generating a function.13* @param functionParams Function parameter names14* @param [functionName] Function name if not anonymous15* @returns Appender that appends code to the function's body16*/17declare function codegen(functionParams: string[], functionName?: string): Codegen;1819/**20* Begins generating a function.21* @param [functionName] Function name if not anonymous22* @returns Appender that appends code to the function's body23*/24declare function codegen(functionName?: string): Codegen;2526declare namespace codegen {2728/** When set to `true`, codegen will log generated code to console. Useful for debugging. */29let verbose: boolean;30}313233