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

    Interface WKKanji

    The exact structure of a subject depends on the subject type. The available subject types are kana_vocabulary, kanji, radical, and vocabulary. Note that any attributes called out for the specific subject type behaves differently than the common attribute of the same name.

    This type asserts the subject type is a kanji, and provides better type assertions requiring less type checking in code.

    interface WKKanji {
        data: WKKanjiData;
        data_updated_at: WKDatableString;
        id: number;
        object: "kanji";
        url: string;
        code?: undefined;
        error?: undefined;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Data for the returned kanji.

    data_updated_at: WKDatableString

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

    id: number

    A unique number identifying the kanji.

    object: "kanji"

    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.