// Infer array type
type BlogPosts = typeof nc.query.blog.$inferPages;
// Use in your functions
function processPosts(posts: BlogPosts) {
posts.forEach(post => {
// Full type safety and IDE autocomplete
console.log(post.title);
console.log(post.published);
});
}