Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.35 KB

File metadata and controls

52 lines (39 loc) · 1.35 KB

TimelineShowAlert

Properties

Name Type
alertType string
clientEventInfo ClientEventInfo
colorConfig { [key: string]: any; }
displayDurationMs number
displayLocation string
iconDisplayInfo { [key: string]: any; }
richText TimelineShowAlertRichText
triggerDelayMs number
type InstructionType
usersResults Array<UserResults>

Example

import type { TimelineShowAlert } from 'twitter-openapi-typescript-generated'

// TODO: Update the object below with actual values
const example = {
  "alertType": null,
  "clientEventInfo": null,
  "colorConfig": null,
  "displayDurationMs": null,
  "displayLocation": null,
  "iconDisplayInfo": null,
  "richText": null,
  "triggerDelayMs": null,
  "type": null,
  "usersResults": null,
} satisfies TimelineShowAlert

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as TimelineShowAlert
console.log(exampleParsed)

[Back to top] [Back to API list] [Back to Model list] [Back to README]