restoreNodeTextCodecGlobals
Defines each of TextEncoder and TextDecoder on the target from node:util, unless the target already has it.
Import:
import { restoreNodeTextCodecGlobals } from '@mnaoumov/obsidian-dev-toolkit/node-text-codec-globals';Signature:
function restoreNodeTextCodecGlobals(target: object): voidParameters:
| Parameter | Type | Description |
|---|---|---|
target |
object | The global object to fill in. |
Returns: void