Documentation
¶
Overview ¶
Package typecheck runs the project's TypeScript compiler for `krate typecheck`. tsc reports tier decorators (`@server function Stats() {}`) as errors, since they are valid only to Krate, so those are removed from its output. Everything else, including a misspelled decorator, is kept.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoTSC = errors.New("typescript is not installed in this project")
ErrNoTSC means the project has no TypeScript compiler installed.
Functions ¶
func Filter ¶
func Filter(output string, read func(path string) (string, error)) (kept string, remaining, dropped int)
Filter drops the tier decorator errors from tsc's plain output (`--pretty false`) and returns the rest, with the number of errors left and dropped. read returns a file's contents.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.