Types of Assignment Requests available in the WaniKani API.

interface WKAssignmentRequests {
    get: (
        idOrParams?: number | WKAssignmentParameters,
        options?: WKRequestGetOptions,
    ) => WKRequest;
    start: (
        id: number,
        payload: WKAssignmentPayload,
        options?: WKRequestPostPutOptions,
    ) => WKRequest;
}

Properties

Properties

get: (
    idOrParams?: number | WKAssignmentParameters,
    options?: WKRequestGetOptions,
) => WKRequest

Get an Assignment or Assignment Collection from the WaniKani API.

Type declaration

start: (
    id: number,
    payload: WKAssignmentPayload,
    options?: WKRequestPostPutOptions,
) => WKRequest

Start an Assignment (i.e. move from Lessons to Reviews) via the WaniKani API.

Type declaration