cosmology-tech / telescope

A TypeScript Transpiler for Cosmos Protobufs ⚛️
https://cosmology.zone/products/telescope
Apache License 2.0
144 stars 43 forks source link

[Feature] rename helper function with function #565

Open liujun93 opened 7 months ago

liujun93 commented 7 months ago

can you support rename helper function with a unified function? i.e.

function(originalName: string, type: "query" | "msg") {
     if (type === "query") {
          return `get${makeFirstCharUpperCase(originalName)}`
     }
     return originalName
}