Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exactOptionalPropertyTypesを有効化したい #14186

Open
KisaragiEffective opened this issue Jul 12, 2024 · 0 comments
Open

exactOptionalPropertyTypesを有効化したい #14186

KisaragiEffective opened this issue Jul 12, 2024 · 0 comments
Labels
🛠️Dev Development of Misskey itself

Comments

@KisaragiEffective
Copy link
Collaborator

https://typescriptbook.jp/reference/tsconfig/exactoptionalpropertytypes

  • うれしい点: 余計なプロパティを混入させるリスクを減らせる
  • 懸念点:
    • expr.property == null みたいなコードで暗黙にoptional propertyを排除している可能性がある
    • property: T | null | undefined など、nullable typeが実際にはoptional propertyを指している可能性がある

related: #14170 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛠️Dev Development of Misskey itself
Projects
Development

No branches or pull requests

1 participant