@kody/stash
src/recent.ts
15 lines · 473 B · TypeScriptimport { listRecent } from './lib/notes.ts'
export { listRecent }
/**
* List the most recently created stash notes.
*
* @returns Newest notes up to `limit` (default 20, max 50).
* @example
* import listRecent from 'kody:@kody/stash/recent'
* const result = await listRecent({ limit: 5 })
* // => { notes: [{ id: '...', summary: '...', createdAt: '...' }] }
*/
export default async function listRecentStashNotes(input?: unknown) {
return await listRecent(input)
}