Skip to main content

StaticInterface

@webda/utils


Function: StaticInterface()

StaticInterface<S>(): <C>(value, _context) => void

Defined in: packages/utils/src/types.ts:167

Ensure the decorated class's constructor object conforms to S (its static side). Usage: @StaticInterface()

Type Parameters​

S​

S extends object

Returns​

a class decorator that enforces the static interface

<C>(value, _context) => void