-
Notifications
You must be signed in to change notification settings - Fork 266
Open
Labels
Description
The playwright library has no clear documentation about whether an argument or return type can be null. In the original TypeScript library it's not a problem since the type system of TypeScript supports nullable annotation. For example, the page.contentText has a string | null type, which indicates that it may be null. With strictNullCheck compiler option, you can't call its methods without proper null check.
However, in this project, the nullable annotation is absent, neither the documentation points out the fact that it can be null.
Java actually has a plenty of null annotations. These annotations can also be identify in Kotlin. I hope nullable can be properly annotated like the TypeScript library, or at least be documented.
jhyot, 3flex, martsokha, KotlinIsland, ThinaticSystem and 1 more

