Closed lizraeli closed 2 years ago
@lizraeli could we add linting and typechecks to this repo? Also could you add new lines to all files, and potentially to your IDE settings?
@lizraeli could we add linting and typechecks to this repo? Also could you add new lines to all files, and potentially to your IDE settings?
@atikenny good points for general in this repo. We can make tickets for these if there aren't already
This PR updates some of the typings for
custom-question-api
and adds an example project.PrimitiveAnswerType
to includeobject
. This is consistent with our definition in the flow and is possible to do in practice.getAnswerValue
- allow a type parameter to be passed. The returned type is a union of the passed type andundefined
(which would be the case for answers that have not been set).