@bachman-dev/wanikani-api-types - v1.8.0
    Preparing search index...

    Interface WKResource

    The common properties across all Resources from the WaniKani API

    interface WKResource {
        data:
            | WKAssignmentData
            | WKKanaVocabularyData
            | WKKanjiData
            | WKLevelProgressionData
            | WKRadicalData
            | WKResetData
            | WKReviewData
            | WKReviewStatisticData
            | WKSpacedRepetitionSystemData
            | WKStudyMaterialData
            | WKUserData
            | WKVocabularyData
            | WKVoiceActorData;
        data_updated_at: WKDatableString;
        object: WKResourceType
        | WKSubjectType;
        url: string;
        code?: undefined;
        error?: undefined;
        id?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    The resource's data, dependent on the particular type of resource.

    data_updated_at: WKDatableString

    For a resource, this is the last time that particular resource was updated.

    The kind of object returned.

    url: string

    The URL of the requested resource.

    code?: undefined

    A resource will never have a code property.

    error?: undefined

    A resource will never have an error property.

    id?: number

    A unique identifying number present on all Resources except a User resource, where it is present the data object.