faaba0f8ec
Simplified the example to just the specific feature, and converted to TypeScript. - `node-fetch@2` is either polyfilled by Next.js or a peerDep of `@vercel/fetch`, I can't quite tell, but either way it can be removed from the dependencies. ## Documentation / Examples - [X] Make sure the linting passes by running `pnpm build && pnpm lint` - [X] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
10 lines
291 B
TypeScript
10 lines
291 B
TypeScript
// For simplicity we are creating our own types here.
|
|
// If you want the full types check out:
|
|
// https://github.com/octokit/openapi-types.ts
|
|
export type Repository = {
|
|
id: number
|
|
name: string
|
|
full_name: string
|
|
stargazers_count: number
|
|
private: boolean
|
|
} & Record<string, unknown>
|