apex / apex/rpc

[TS types] can we have camel casing for field names?

オープン
#40 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
215
フォーク
16
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently it's snake_cased: https://github.com/apex/rpc/blob/master/generators/tstypes/testdata/todo_types.ts#L4

I'm using [prettier](https://github.com/prettier/prettier) on my codebase which is a very opinionated code formatter and I guess many other people are too considering the number of stars it has on github.

Prettier is strict about using camelCasing for object field names so it gives me very annoying eslint errors when I try to instantiate api types.

It would be great if we had a flag in the generator to generate camelCased fields instead. WDYT?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。