Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

spool / KitPlugin

Interface: KitPlugin โ€‹

Defined in: plugin.ts:5

A spool plugin: a name, its deps, and an install that adds the feature. Does nothing until passed to installKit.

Properties โ€‹

deps? โ€‹

readonly optional deps?: readonly string[]

Defined in: plugin.ts:9

Plugins that must be installed first. A missing one is an error.


name โ€‹

readonly name: string

Defined in: plugin.ts:7

Unique id. Used to dedupe installs and to resolve deps.

Methods โ€‹

install() โ€‹

install(): void

Defined in: plugin.ts:14

Adds the feature (e.g. Selector.prototype.holding = ...). Runs at most once, so needn't be idempotent.

Returns โ€‹

void

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.