AniLink - v2.0.0
    Preparing search index...

    Interface MyAnimeListUserApi

    MyAnimeListUserApi is the user group exposed by MyAnimeListApi under aniLink.mal.user.

    It is the facade boundary for the authenticated MyAnimeList user read; the single MalUserOperation.me | me method delegates to MalUserOperation and returns a MalUser shaped by MalRequestOptions.fields.

    interface MyAnimeListUserApi {
        me: (options?: MalRequestOptions) => Promise<MalUser>;
    }
    Index
    me: (options?: MalRequestOptions) => Promise<MalUser>

    MyAnimeListUserApi.me gets the currently authenticated MyAnimeList user through MalUserOperation.me.

    It is the public facade for GET /users/@me and requires a MAL access token from MalCredentials.accessToken via buildMyAnimeListApi; use MalRequestOptions.fields to select the response shape.

    Type Declaration

    AniLinkAuthError when no MAL access token is configured.

    AniLinkApiError for a non-success MyAnimeList response.

    AniLinkNetworkError for timeout, cancellation, or other transport failures.

    const api = new AniLink({ mal: { accessToken: "mal-token" } }).mal;
    const user = await api.user.me({ fields: ["id", "name"] });