TryGhost / TryGhost/SDK

Brows Ghost api

Open
#488 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
134
Forks
87
Avg merge
12m
Merged PRs (30d)
25

Description

const posts = await ghostClient.posts.browse({
include:['tags'],
limit:5,
page:page,
filter: ['tag:hash-blog-ja']
})

I try to call it in typescript and render in nextjs but the type does not it return an object not match with the PostOrPages type

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the ghostClient.posts.browse call shown in the issue with include:['tags'], limit:5, page, and the tag filter in TypeScript with Next.js. Compare the returned object with the PostOrPages type and determine the expected type behavior; done when the browse result and its declared type agree.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.