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
readonlyfragment:F
Defined in: packages/core/src/contract.ts:313
name
readonlyname:string
Defined in: packages/core/src/contract.ts:312