@beignet/core
Version:
Core framework primitives for Beignet
21 lines • 827 B
TypeScript
/**
* Unbound port placeholders for deferred `definePorts(...)` keys.
*
* Ports declared as deferred boot as marked placeholders. Any method call on
* a placeholder throws a descriptive error, and `createServer(...)` scans
* final ports after provider startup so a missing provider fails boot instead
* of failing on first use.
*/
/**
* Create a marked placeholder for a deferred port.
*
* Property access returns a function that throws, so calling any method on an
* unbound port produces a descriptive error naming the port.
*/
export declare function createUnboundPort(portName: string): unknown;
/**
* Check whether a value is an unbound port placeholder created for a deferred
* `definePorts(...)` key.
*/
export declare function isUnboundPort(value: unknown): boolean;
//# sourceMappingURL=unbound.d.ts.map