js-miniapp-sdk

Globals

js-miniapp-sdk

Index

Enumerations

Classes

Interfaces

Variables

Functions

Variables

errorTypesDescriptions

Const errorTypesDescriptions: Map<MiniAppErrorType, string> = new Map<MiniAppErrorType, string>([ [ MiniAppErrorType.AudienceNotSupportedError, “The value passed for ‘audience’ is not supported.”, ], [ MiniAppErrorType.ScopesNotSupportedError, “The value passed for ‘scopes’ is not supported.”, ],])

Defined in js-miniapp-bridge/src/types/error-types/index.ts:66

Functions

parseMiniAppError

parseMiniAppError(jsonString: string): MiniAppJson

Defined in js-miniapp-bridge/src/types/error-types/index.ts:15

Parameters:

Name Type
jsonString string

Returns: MiniAppJson


trimBannerText

trimBannerText(message?: string, maxLength?: number): string

Defined in js-miniapp-bridge/src/common-bridge.ts:484

Parameters:

Name Type Default value
message string null
maxLength number 128

Returns: string