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

    Interface WKStudyMaterialRequests

    Types of Study Material Requests available in the WaniKani API.

    interface WKStudyMaterialRequests {
        create: (
            payload: WKStudyMaterialCreatePayload,
            options?: WKRequestPostPutOptions,
        ) => WKRequest;
        get: (
            idOrParams?: number | WKStudyMaterialParameters,
            options?: WKRequestGetOptions,
        ) => WKRequest;
        update: (
            id: number,
            payload: Partial,
            options?: WKRequestPostPutOptions,
        ) => WKRequest;
    }
    Index

    Properties

    Properties

    create: (
        payload: WKStudyMaterialCreatePayload,
        options?: WKRequestPostPutOptions,
    ) => WKRequest

    Create a new Study Material for a given Subject via the WaniKani API.

    Type declaration

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

    Get a Study Material or Study Material Collection from the WaniKani API.

    Type declaration

    update: (
        id: number,
        payload: Partial,
        options?: WKRequestPostPutOptions,
    ) => WKRequest

    Update a Study Material for a given Subject.

    Type declaration

      • (id: number, payload: Partial, options?: WKRequestPostPutOptions): WKRequest
      • Parameters

        • id: number

          The Study Material ID to update.

        • payload: Partial

          The payload to send when updating the Study Material.

        • Optionaloptions: WKRequestPostPutOptions

          Options for making PUT requests to the API.

        Returns WKRequest

        An Update Study Material Request usabile in any HTTP API/Library.