UNPKG

stackexchange-api

Version:
50 lines (49 loc) 1.61 kB
import { RelatedSite } from './RelatedSite'; import { Styling } from './Styling'; import { TypeSite } from '../interfaces/result-types/TypeSite'; /** * The equivalent of [Type site](https://api.stackexchange.com/docs/types/site).<br> * This object represents a Site in the [Stack Exchange network](https://stackexchange.com/sites). */ export declare class Site { /** * *May be absent, in which case it is set to `null`* */ aliases: string[] | null; apiSiteParameter: string | null; audience: string | null; /** * *May be absent, in which case it is set to `null`* */ closedBetaDate: Date | null; faviconUrl: string | null; /** * *May be absent, in which case it is set to `null`* */ highResolutionIconUrl: string | null; iconUrl: string | null; launchDate: Date | null; logoUrl: string | null; /** * *May be absent, in which case it is set to `null`* */ markdownExtensions: Array<'MathJax' | 'Prettify' | 'Balsamiq' | 'jTab'> | null; name: string | null | null; /** * *May be absent, in which case it is set to `null`* */ openBetaDate: Date | null; /** * *May be absent, in which case it is set to `null`* */ relatedSites: RelatedSite[] | null; siteState: 'normal' | 'closed_beta' | 'open_beta' | 'linked_meta' | null; siteType: 'main_site' | 'meta_site' | null; siteUrl: string | null; styling: Styling | null; /** * *May be absent, in which case it is set to `null`* */ twitterAccount: string | null; constructor(site?: TypeSite); }