acacode / acacode/swagger-typescript-api
Feature: Option to use 'unknown' instead of 'any'
未關閉
- 主要語言
- TypeScript
- 星號
- 4.1k
- 分支
- 436
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Hi,
I configured my typescript project to be as strict as possible to prevent as many runtime errors as possible. This includes denying the explicit usage of the `any` type. Using `any` in typescript is always unsafe and should only be used with care.
A command line option like `--unknown-instead-of-any` would be very nice :)
At the moment I added a `sed` command in my `package.json` to automatically replace all `any` with `unknown` in the generated typescript file, but I might not be the only one who prefers `unknown` over `any`.
Kind regards,
Marcel
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。