Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/stash

src/update.ts

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