We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be nice if instead of writing stuff like this:
try { return JSON.parse(Deno.readTextFileSync(this.#filePath)) as { ip: string }; } catch (err) { if (err instanceof Deno.errors.NotFound) { return undefined; } else { throw err; } }
...if I could instead do:
const maybeData = $.path(this.#filePath).maybeJsonSync<{ name: string }>(); const data = $.path(this.#filePath).jsonSync<{ name: string }>();
I will work on this probably this week.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
It would be nice if instead of writing stuff like this:
...if I could instead do:
I will work on this probably this week.
The text was updated successfully, but these errors were encountered: