Function: $inline()
ts
function $inline<T>(value: T): T;Force compile-time inlining of the wrapped call or constant expression.
The inline plugin splices the target function body or folds the constant at this call site even when the target declaration carries no inlining tag, and fails the build when the target cannot be inlined. At runtime the helper returns the provided value unchanged.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
value | T | Call or constant expression to inline. |
Returns
T
Same value.