@kody/stash
src/update.ts
14 lines · 471 B · TypeScriptimport { updateNote } from './lib/notes.ts'
export { updateNote }
/**
* Update a stash note's text, tags, kind, or due date.
*
* @param input.dryRun - When true, preview the updated note without writing storage.
* @example
* import updateNote from 'kody:@kody/stash/update'
* const preview = await updateNote({ id: 'note-uuid', text: 'Updated', dryRun: true })
*/
export default async function updateStashNote(input?: unknown) {
return await updateNote(input)
}