Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DataTransformerContext

The context of data transformer.

Hierarchy

Index

Properties

Optional context

context: any

An optional context / object value defined by the "sender".

data

data: Buffer

The data to transform.

emitGlobal

emitGlobal: function

Emits a global event.

param

The event.

param

The arguments.

Type declaration

    • (event: string | symbol, ...args: any[]): boolean
    • Parameters

      • event: string | symbol
      • Rest ...args: any[]

      Returns boolean

globals

The global variables from the settings.

mode

The mode.

Optional options

options: any

The optional options for transformation.

replaceWithValues

replaceWithValues: function

Handles a value as string and replaces placeholders.

param

The value to parse.

returns

The parsed value.

Type declaration

    • (val: any): string
    • Parameters

      • val: any

      Returns string

require

require: function

Loads a module from the script context.

param

The ID / path to the module.

returns

The loaded module.

Type declaration

    • (id: string): any
    • Parameters

      • id: string

      Returns any

Generated using TypeDoc