Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "CommonTypes"

Index

Type aliases

IMultiLangText

IMultiLangText: string | IDictionary<string>

SimpleCallback

SimpleCallback: function

Type declaration

    • (): void
    • Returns void

SimpleMessageCallback

SimpleMessageCallback: function

Type declaration

    • (msg: string): void
    • Parameters

      • msg: string

      Returns void

__Def

__Def: function

Used to define global function __() inside typescript modules.

Type declaration

    • (str: string): string
    • Parameters

      • str: string

      Returns string

__trDef

__trDef: function

Used to define global function __tr() inside typescript modules.

Type declaration

    • (str: any, langCode?: string | null, defText?: string | null, canTakeAny?: boolean | null, forceNonEmpty?: undefined | false | true): string
    • Parameters

      • str: any
      • Optional langCode: string | null
      • Optional defText: string | null
      • Optional canTakeAny: boolean | null
      • Optional forceNonEmpty: undefined | false | true

      Returns string

__trrDef

__trrDef: function

Used to define global function __trr() inside typescript modules.

Type declaration

    • (str: any): string
    • Parameters

      • str: any

      Returns string

escapeHtml

escapeHtml: function

Used to escape HTML (equivalent to "htmlspecialchars" in PHP).

Type declaration

    • (str: string): string
    • Parameters

      • str: string

      Returns string

stripTags

stripTags: function

Strips HTML tags (equivalent to "strip_tags" in PHP).

Type declaration

    • (html: string): string
    • Parameters

      • html: string

      Returns string