Skip to content

Documentation / @super-line/server / createCollectionRuntime

Function: createCollectionRuntime() ​

createCollectionRuntime(config, host): CollectionRuntime

Defined in: collections/index.ts:73

Build the runtime. The two families share exactly three things — the contract's defs, the policies map, and the srv.collection(n) dispatch below — which is why they live behind one interface rather than two: split the seam between them and all three straddle it.

Parameters ​

config ​

CollectionRuntimeConfig

host ​

CollectionHost

Returns ​

CollectionRuntime

Released under the MIT License.