UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

52 lines (25 loc) 965 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [ILifecycleStrategy](./rc-js-util.ilifecyclestrategy.md) &gt; [createNode](./rc-js-util.ilifecyclestrategy.createnode.md) ## ILifecycleStrategy.createNode() method Conceptually, there is always an owner. if you supply null, the resource is owned by a block scope; it is a (debug) error to create a node without one or the other. **Signature:** ```typescript createNode(owner: IManagedResourceNode | null): IManagedResourceNode; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> owner </td><td> [IManagedResourceNode](./rc-js-util.imanagedresourcenode.md) \| null </td><td> </td></tr> </tbody></table> **Returns:** [IManagedResourceNode](./rc-js-util.imanagedresourcenode.md)