Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

TextModuleData

import type { TextModuleData } from "https://googleapis.deno.dev/v1/walletobjects:v1.ts";

Data for Text module. All fields are optional. Header will be displayed if available, different types of bodies will be concatenated if they are defined.

interface TextModuleData {
body?: string;
header?: string;
id?: string;
localizedBody?: LocalizedString;
localizedHeader?: LocalizedString;
}

§Properties

§
body?: string
[src]

The body of the Text Module, which is defined as an uninterrupted string. Recommended maximum length is 500 characters to ensure full string is displayed on smaller screens.

§
id?: string
[src]

The ID associated with a text module. This field is here to enable ease of management of text modules.

§
localizedBody?: LocalizedString
[src]

Translated strings for the body. Recommended maximum length is 500 characters to ensure full string is displayed on smaller screens.

§
localizedHeader?: LocalizedString
[src]

Translated strings for the header. Recommended maximum length is 35 characters to ensure full string is displayed on smaller screens.