import "@johnlindquist/kit"
const fetch = await npm("node-fetch");
interface RecentDoc {
id: string;
title: string;
}
interface QueryResult {
data: RecentDoc[];
}
const apiKey = await env("STASHPAD_DOCS_API_KEY", {
hint: `Login to your account on <a href="https://docs.stashpad.com">Stashpad Docs</a> and generate an API key from the settings menu (top right corner).`,
});
async function getRecentDocs(apiKey: string) {