KScript docs
EN

Error codes

KS6007

A function parameter with no type. Write one, so callers and the editor know what it takes: fn cached(key: string, compute: fn). When every call in the file passes the same type, the editor shows it beside the name and the quick fix writes it in. A parameter with a default ($count = 0) takes its type from the default, and functions inside a job are left alone, because the queue calls them.

Edit this page on GitHub