Skip to main content
Module

x/deno2node/src/deps.deno.ts>Project#forgetNodesCreatedInBlock

Compile your Deno project to run on Node.js.
Go to Latest
method Project.prototype.forgetNodesCreatedInBlock
import { Project } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Forgets the nodes created in the scope of the passed in block.

This is an advanced method that can be used to easily "forget" all the nodes created within the scope of the block.

Type Parameters

optional
T = void

Parameters

block: (remember: (...node: Node[]) => void) => T
  • Block of code to run. Use the remember callback or return a node to remember it.

Forgets the nodes created in the scope of the passed in block asynchronously.

This is an advanced method that can be used to easily "forget" all the nodes created within the scope of the block.

Type Parameters

optional
T = void

Parameters

block: (remember: (...node: Node[]) => void) => Promise<T>
  • Block of code to run. Use the remember callback or return a node to remember it.

Returns

Promise<T>