Skip to content

Documentation / @super-line/core / ContractPlugin

Interface: ContractPlugin<F>

Defined in: packages/core/src/contract.ts:311

A named contract fragment — the contract-time half of a paired plugin. Pass it in defineContract({ plugins: [...] }); its collections/roles/shared surface merge into the contract (a duplicate collection name or surface key is a startup throw). Its server/client runtime halves register separately on createSuperLineServer / createSuperLineClient.

Type Parameters

F

F extends ContractFragment = ContractFragment

Properties

fragment

readonly fragment: F

Defined in: packages/core/src/contract.ts:313


name

readonly name: string

Defined in: packages/core/src/contract.ts:312

Released under the MIT License.