Repository navigation
convert to typescript - #68
Merged
Merged
Conversation
every module, test, and config is typescript at full strictness, and `vp check` checks types through tsgolint. lit properties stay in `static properties` with `declare` fields, since vite+ doesn't compile standard decorators yet. the stylelint config stays javascript, since loading a typescript one needs the `typescript` package. > made with claude code + tinfoil hash · session `f733cab3-1d11-4277-84f9-96698bda1377` Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`satisfies` catches a misspelled option next to a valid one, which the static side's type check lets through. lit-plugin type-checks template bindings in the editor against the `HTMLElementTagNameMap` entries. > made with claude code + tinfoil hash · session `f733cab3-1d11-4277-84f9-96698bda1377` Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
this checks overrides & erasable syntax, marks set-once fields readonly, types both event targets' listeners with one shared class, narrows the status color to its three values, and moves every export to the bottom of its file. > made with claude code + tinfoil hash · session `f733cab3-1d11-4277-84f9-96698bda1377` Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
> made with claude code + tinfoil hash · session `f733cab3-1d11-4277-84f9-96698bda1377` Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
every module, test, and config is now typescript at the strictness in
tsconfig.json, andvp checkchecks types through tsgolint.AGENTS.mdand the readme describe the new conventions.lit properties stay in
static propertieswith adeclarefield each, since vite+ 1.5 passes standard decorators through untranspiled. reactive state isprivate _name, and every other internal member is#name. the stylelint config stays javascript, since loading a typescript one needs thetypescriptpackage.a few behavior changes came out of the types: a profile
picturethat isn't a string counts as no picture, tags without a name are skipped, going back no longer throws when the previous history entry has no url, and publishing without an extension throws a friendly error (the button is already disabled then).