Skip to main content

DynamicTextAssets

Hierarchy

Index

Constructors

constructor

Properties

convertToHtmlFormat

convertToHtmlFormat: boolean

readonlydirectory

directory: null | string

readonlydynamicData

dynamicData: DynamicData

readonlyenka

readonlyid

id: number

Methods

copyWithUserInfo

get

  • @throws

    Parameters

    Returns string

getNullable


  • Parameters

    Returns null | string

    null instead of throwing AssetsNotFoundError.

getNullableReplacedData

  • getNullableReplacedData(replaceWith?: keyof DynamicData[], lang?: LanguageCode): null | { text: string; usedParamIndices: number[] }

  • Parameters

    Returns null | { text: string; usedParamIndices: number[] }

    null instead of throwing AssetsNotFoundError.

getNullableReplacedText


  • Parameters

    Returns null | string

    null instead of throwing AssetsNotFoundError.

getReplacedData

  • getReplacedData(replaceWith?: (paramList | userInfo | userInfo.travelerGender | userInfo.travelerNickname | userInfo.platform)[], lang?: LanguageCode): { text: string; usedParamIndices: number[] }
  • @throws

    AssetsNotFoundError


    Parameters

    • replaceWith: (paramList | userInfo | userInfo.travelerGender | userInfo.travelerNickname | userInfo.platform)[] = []

      an empty array is the same as an array containing all paths

    • optionallang: LanguageCode

    Returns { text: string; usedParamIndices: number[] }

    • text: string
    • usedParamIndices: number[]

getReplacedText

setConvertToHtmlFormat

  • Parameters

    • convertToHtmlFormat: boolean

    Returns DynamicTextAssets

toString

  • toString(): string
  • Returns string