-
Notifications
You must be signed in to change notification settings - Fork 12
fix: loading of examples #92
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
cde93cb to
10ec51b
Compare
10ec51b to
2514e41
Compare
tstirrat15
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, has a test failure.
| const match = path.match(/\/examples\/schemas\/(.*)\/README\.md/); | ||
| return match ? match[1] : ""; | ||
| }) | ||
| .filter((name): name is string => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WHAT! I didn't realize this was valid syntax
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i didn't know either (i don't know typescript), this was written by Claude 😆
https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates
|
Though I guess if |
cd5b3f4
True, i brought this because it makes the code easier to read (no more promises or async/awaits) The size of the playground is huge anyway, with the wasm stuff.. |
|
Mmm yeah. And we're a ways off of wanting to run |
tstirrat15
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I tried to bring the latest
examplesrepo and it failed to load because this example doesn't have theschema-and-data.yamlfile.