Options
All
  • Public
  • Public/Protected
  • All
Menu

AntOS API

Index

Namespaces

Interfaces

Type aliases

Variables

Functions

Type aliases

VFSFileHandleClass

VFSFileHandleClass: { constructor: any }

Type declaration

Variables

Const Ant

Ant: globalThis = this

Reference to the global this

ace

ace: any

Functions

__

  • Global function to create a FormattedString from a formatted string and a list of parameters. Example

    __("hello {0}", world) // return a FormattedString object

    Parameters

    • Rest ...args: any[]

    Returns FormattedString | string

__e

  • __e(e: Error): Error
  • This global function allow chaining stack trace from one error to another. It is particular helping when tracking the source of the error in promises chain which results in some obfuscated stack traces as the stack resets on every new promise.

    Parameters

    • e: Error

    Returns Error