Skip to content

Fix parseStrict README example - #294

Open
alan747271363-art wants to merge 1 commit into
vercel:mainfrom
alan747271363-art:codex/fix-parse-strict-readme-example
Open

Fix parseStrict README example#294
alan747271363-art wants to merge 1 commit into
vercel:mainfrom
alan747271363-art:codex/fix-parse-strict-readme-example

Conversation

@alan747271363-art

Copy link
Copy Markdown

Summary

Fixes the parseStrict README example so it passes the function argument s instead of the undefined str identifier.

Validation

  • git diff --check

This is a docs-only change. I also attempted the full test script locally, but this checkout has no installed node_modules, so the package test script could not start.

@lbesecker195 lbesecker195 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

str is not defined in the example; s is the parameter. The // tsc error comment still applies since a plain string is not a StringValue. LGTM.

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.

2 participants