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

Type 'string | undefined' is not assignable to type 'string' #24

Open
FarzanKh opened this issue Oct 10, 2020 · 2 comments
Open

Type 'string | undefined' is not assignable to type 'string' #24

FarzanKh opened this issue Oct 10, 2020 · 2 comments

Comments

@FarzanKh
Copy link

Screenshot:
https://ibb.co/T8GmVLF

@fzammetti
Copy link
Collaborator

fzammetti commented Oct 11, 2020

Hi... can you tell me what IDE/editor you're using? I'm not seeing such an error in IntelliJ IDEA.

Also, is the code compiling and running for you from a CLI? For me, it is, and it seems to run just fine.

@avouspierre
Copy link

hi,

add a "!" to manage the not undefined value

return parsed.text!

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

No branches or pull requests

3 participants