@@ -78,10 +78,10 @@ export type CreateNoteOpts = {
7878
7979/*
8080 * Defines options for creating a note at a specific path.
81- * Serves as a base (not exported) for "into", "before", and "after" variants,
81+ * Serves as a base for "into", "before", and "after" variants,
8282 * sharing common URL-related fields.
8383 */
84- type CreateNoteAtUrlOpts = CreateNoteOpts & {
84+ type CreateNoteWithUrlOpts = CreateNoteOpts & {
8585 // `Url` may refer to either parentNotePath or parentNoteId.
8686 // The vocabulary is inspired by existing function getNoteIdFromUrl.
8787 parentNoteUrl : string ;
@@ -90,9 +90,9 @@ type CreateNoteAtUrlOpts = CreateNoteOpts & {
9090 targetBranchId : string ;
9191}
9292
93- export type CreateNoteIntoUrlOpts = CreateNoteAtUrlOpts ;
94- export type CreateNoteBeforeUrlOpts = CreateNoteAtUrlOpts ;
95- export type CreateNoteAfterUrlOpts = CreateNoteAtUrlOpts ;
93+ export type CreateNoteIntoUrlOpts = CreateNoteWithUrlOpts ;
94+ export type CreateNoteBeforeUrlOpts = CreateNoteWithUrlOpts ;
95+ export type CreateNoteAfterUrlOpts = CreateNoteWithUrlOpts ;
9696
9797type NeverDefineParentNoteUrlRule = {
9898 parentNoteUrl ?: never ;
@@ -132,9 +132,9 @@ async function createNote(
132132 return createNoteIntoInbox ( resolvedOptions as CreateNoteIntoInboxOpts ) ;
133133 }
134134
135- return createNoteAtNote (
135+ return createNoteWithUrl (
136136 resolvedOptions . target as "into" | "after" | "before" ,
137- resolvedOptions as CreateNoteAtUrlOpts
137+ resolvedOptions as CreateNoteWithUrlOpts
138138 ) ;
139139}
140140
@@ -173,9 +173,9 @@ async function promptForType(
173173 * @param options - Note creation options
174174 * @returns A promise resolving with the created note and its branch.
175175 */
176- async function createNoteAtNote (
176+ async function createNoteWithUrl (
177177 target : "into" | "after" | "before" ,
178- options : CreateNoteAtUrlOpts
178+ options : CreateNoteWithUrlOpts
179179) : Promise < { note : FNote | null ; branch : FBranch | undefined } > {
180180 options = Object . assign (
181181 {
@@ -270,7 +270,7 @@ async function createNoteIntoInbox(
270270 inboxNote . isProtected && protectedSessionHolder . isProtectedSessionAvailable ( ) ;
271271 }
272272
273- const result = await createNoteAtNote ( "into" ,
273+ const result = await createNoteWithUrl ( "into" ,
274274 {
275275 ...options ,
276276 parentNoteUrl : inboxNote . noteId ,
0 commit comments