Dan Vanderkam

Results 308 issues of Dan Vanderkam

Fixes #238 For my production deadline, checking for the correct number of lines is the only important part. Still to do: - [ ] Add number-of-lines mode - [ ]...

See https://stackoverflow.com/a/76343394/388951 and #240

This isn't strictly on-brand for literate-ts, but it would be an extremely convenient place to enforce this. This could read a prettier config file from the current directory or a...

The [bug workbench](https://www.typescriptlang.org/dev/bug-workbench/) is a fork of the playground designed for filing bug reports. It lets you define multiple files like this: ```ts export const a = 2; // @filename:...

Should something this be allowed? ```ts function callWithRandomNumbers(fn: (n1: number, n2: number) => void) { fn(Math.random(), Math.random()); } callWithRandomNumbers((a, b) => { // ^? (parameter) a: number // ^? (parameter)...

Now that literate-ts can be run as a VS Code task, it would be really convenient for it to have a "watch" mode that re-runs on changes.

See: - https://github.com/release-it/release-it - https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/main/.release-it.json - https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/main/.github/workflows/release.yml The `release.yml` action looks pretty complicated!

With twoslash you can write ``` // @strictNullChecks: false ``` in your code to set a `tsconfig.json` option. See https://www.typescriptlang.org/play?#handbook-11 This might be nice to support in code snippets as...

Posts: - [x] avoid-inferable.md - [x] evolving-any.md - [x] hello-world.md - [x] iterate-objects.md - [x] jsonify.md - [x] literate-ts.md - [x] null-values-to-perimeter.md - [x] typed-identity-functions.md - [ ] unionize-objectify.md

For samples that don't need to be run through Node, that don't require node modules or use specific tsconfig options, it should be possible to run them all at once...