react-google-forms-hooks icon indicating copy to clipboard operation
react-google-forms-hooks copied to clipboard

Update form.ts to handle null discription

Open Darshan808 opened this issue 1 year ago • 1 comments

Fixes #33

Issue: When there is no description in Google Forms, the value is set to null. Since the current code only handles description as undefined or a string, TypeScript raises a type incompatibility error.

Type 'null' is not assignable to type 'string | undefined'.

Solution: Added optional null type to the description field to handle this error.

Darshan808 avatar May 16 '24 03:05 Darshan808

Also encountered this, though it was easily mitigated with a description. Still a good change.

cnkeats avatar Jun 09 '24 00:06 cnkeats