ContributionResult

The plain JSON result of getFinancialContribution().

On this page

The plain JSON result of getFinancialContribution().

import type { ContributionResult } from "@sponsorkit/sdk";

interface ContributionResult { … }

Interface, exported from @sponsorkit/sdk, @sponsorkit/sdk/node, @sponsorkit/sdk/server.

Properties#

signedIn#

signedIn: boolean

disabled#

disabled: boolean

mock#

mock: boolean

targets#

targets: string[]

Canonical target strings, e.g. ["github:octocat"].

supporter#

supporter: Supporter | null

Type: Supporter

contributions#

contributions: Contribution[]

Type: Contribution

fetchedAt#

fetchedAt: string | null

stale#

stale: boolean

Some provider could not be reached; its data (if any) comes from the local cache.

fromCache#

fromCache: boolean

The whole result was served from the local cache.

unavailable#

unavailable?: Provider[]

Providers the API could not query (API results only).

Type: Provider