Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.29 KB

File metadata and controls

50 lines (37 loc) · 1.29 KB

TimelineTimelineModule

Properties

Name Type
typename TypeName
clientEventInfo ClientEventInfo
displayType DisplayType
entryType ContentEntryType
feedbackInfo FeedbackInfo
footer { [key: string]: any; }
header { [key: string]: any; }
items Array<ModuleItem>
metadata { [key: string]: any; }

Example

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

// TODO: Update the object below with actual values
const example = {
  "typename": null,
  "clientEventInfo": null,
  "displayType": null,
  "entryType": null,
  "feedbackInfo": null,
  "footer": null,
  "header": null,
  "items": null,
  "metadata": null,
} satisfies TimelineTimelineModule

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 TimelineTimelineModule
console.log(exampleParsed)

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