| 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> |
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]