Skip to content

spool / Kit

Class: Kit

Defined in: kit.ts:16

A registration session. Collect plugins with use(...), then install() to topologically order them by deps, dedupe, and run each install() once.

createKit().use(holding).use(clip).install();

Constructors

Constructor

new Kit(): Kit

Returns

Kit

Methods

install()

install(): void

Defined in: kit.ts:28

Resolve dependency order and install each not-yet-installed plugin once.

Returns

void


use()

use(...plugins): this

Defined in: kit.ts:20

Queue one or more plugins. Re-adding the same name is ignored.

Parameters

plugins

...KitPlugin[]

Returns

this

Released under the MIT License · Credits