Options
All
  • Public
  • Public/Protected
  • All
Menu

use-github

Index

Functions

  • useGitHubPinnedRepos(username: string): { data: undefined | (GitHubPinnedRepo & { url: string })[]; error?: Error; isValidating: boolean; mutate: KeyedMutator<GitHubPinnedRepo[]> }
  • Get the GitHub Pinned Repositories of an user

    Parameters

    • username: string

      The GitHub username to fetch

    Returns { data: undefined | (GitHubPinnedRepo & { url: string })[]; error?: Error; isValidating: boolean; mutate: KeyedMutator<GitHubPinnedRepo[]> }

    The array of pined repos

  • useGitHubUser(username: string): SWRResponse<GitHubUser, Error>
  • Get the data of a GitHub User

    Parameters

    • username: string

      The GitHub username to fetch

    Returns SWRResponse<GitHubUser, Error>

    The GitHub user data

Generated using TypeDoc