noteBuilder.ts•603 B
/**
* Note Builder Utilities
* Simplified note creation with string content
*/
import { SimpleNoteInput, CreateNoteParams } from '../types/noteBuilderTypes.js';
import type { NoteType } from '../modules/noteManager.js';
/**
* Build note parameters with string content
* This is the main factory function that simplifies note creation
* Handles all note types with string content
*/
export function buildNoteParams(input: SimpleNoteInput): CreateNoteParams {
const { noteType, content, ...otherParams } = input;
return {
...otherParams,
type: noteType,
content: content
};
}