ForwardRef
An instance of a forward ref function.
Example:
const test = new ForwardRef(() => 'test');
test.ref; // => 'test'
Static Method Summary
| Static Public Methods | ||
| public static |
resolve(val: *): * Resolves a potential forward reference. |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(fn: *) |
|
Member Summary
| Public Members | ||
| public |
fn: * |
|
| public get |
ref: * The reference invoked reference function result. |
|
Static Public Methods
public static resolve(val: *): * source
Resolves a potential forward reference.
Params:
| Name | Type | Attribute | Description |
| val | * |
Return:
| * |
Public Constructors
public constructor(fn: *) source
Params:
| Name | Type | Attribute | Description |
| fn | * |