Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "error/tools/msg2id/docs/types/index.d"

Index

Functions

Functions

Export assignment msg2id

  • msg2id(msg: string): string | null
  • Returns a two-character error identifier corresponding to a provided error message.

    Parameters

    • msg: string

      error message

    Returns string | null

    two-character error identifier

    Example

    var v = msg2id( 'invalid option. `%s` option must be an array. Option: `%s`.' );
    // returns '8t'