ResourceInterface.setParent() method
Set the parent resource, if one exists.
Signature:
setParent(parent?: ResourceInterface | undefined): ResourceInterface<TOptions, TSources>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
parent |
ResourceInterface | undefined |
(Optional) |
Returns:
ResourceInterface<TOptions, TSources>
Remarks
Note, this also accepts undefined to support unsetting the parent.