External Interface Required Fields
When using Kotlin JS with libraries such as react, you may frequently create external interfaces for react props you want to use. They have to be external interfaces because they extend the external interface Props and Kotlin doesn’t like to extend external stuff with internal classes/interfaces.The problem is that if you want to specify required fields you have to essentially create a function wrapper to enforce which fields are required. In Typescript, using their equivalent to external...