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

Update form.ts to handle null discription #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Darshan808
Copy link

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.

@cnkeats
Copy link

cnkeats commented Jun 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: The from json type does not match with GoogleForm type in typescript
2 participants