Skip to content
← Public packages

@kody/stash

Keep searchable notes, reminders, and facts in this package's storage — no OAuth, API keys, or bot tokens.

src/update.ts

14 lines · 471 B · TypeScript
Raw
import { 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)
}