Packages > @fluidframework/tree >

Unenforced

A placeholder to use in extends constraints when using the real type breaks compilation of some recursive types due to a design limitation of TypeScript .

These extends constraints only serve as documentation: to avoid breaking compilation, this type has to not actually enforce anything, and thus is just unknown. Therefore the type safety is the responsibility of the user of the API.

Signature

export type Unenforced<_DesiredExtendsConstraint> = unknown;

Type Parameters

Parameter Description
_DesiredExtendsConstraint