| Name | Type |
|---|---|
typename |
TypeName |
actions |
CommunityActions |
adminResults |
UserResults |
createdAt |
number |
creatorResults |
UserResults |
customBannerMedia |
{ [key: string]: any; } |
defaultBannerMedia |
{ [key: string]: any; } |
description |
string |
idStr |
string |
invitesPolicy |
string |
invitesResult |
CommunityInvitesResult |
isPinned |
boolean |
joinPolicy |
string |
joinRequestsResult |
CommunityJoinRequestsResult |
memberCount |
number |
membersFacepileResults |
Array<UserResults> |
moderatorCount |
number |
name |
string |
primaryCommunityTopic |
PrimaryCommunityTopic |
question |
string |
role |
string |
rules |
Array<CommunityRule> |
searchTags |
Array<string> |
showOnlyUsersToDisplay |
Array<string> |
urls |
CommunityUrls |
viewerRelationship |
{ [key: string]: any; } |
import type { Community } from 'twitter-openapi-typescript-generated'
// TODO: Update the object below with actual values
const example = {
"typename": null,
"actions": null,
"adminResults": null,
"createdAt": null,
"creatorResults": null,
"customBannerMedia": null,
"defaultBannerMedia": null,
"description": null,
"idStr": null,
"invitesPolicy": null,
"invitesResult": null,
"isPinned": null,
"joinPolicy": null,
"joinRequestsResult": null,
"memberCount": null,
"membersFacepileResults": null,
"moderatorCount": null,
"name": null,
"primaryCommunityTopic": null,
"question": null,
"role": null,
"rules": null,
"searchTags": null,
"showOnlyUsersToDisplay": null,
"urls": null,
"viewerRelationship": null,
} satisfies Community
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 Community
console.log(exampleParsed)[Back to top] [Back to API list] [Back to Model list] [Back to README]