Skip to content

Commit

Permalink
improve(api): types & typos
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 authored and tiensonqin committed Aug 22, 2022
1 parent 7e36100 commit 85aeba9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libs/src/LSPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ export interface IEditorProxy extends Record<string, any> {
) => Promise<Array<PageEntity> | null>

/**
* Create an uuid string for specific block id(uuid)
* Create a unique UUID string which can then be assigned to a block.
* @added 0.0.8
*/
newBlockUUID: () => Promise<string>
Expand All @@ -574,6 +574,7 @@ export interface IEditorProxy extends Record<string, any> {
before: boolean
sibling: boolean
isPageBlock: boolean
customUUID: string
properties: {}
}>
) => Promise<BlockEntity | null>
Expand Down
2 changes: 1 addition & 1 deletion src/main/logseq/api.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@
(util/format "Illegal custom block UUID pattern (%s)." custom-uuid))))
(when (db-model/query-block-by-uuid custom-uuid)
(throw (js/Error.
(util/format "Custom block UUID existed (%s)." custom-uuid)))))
(util/format "Custom block UUID already exists (%s)." custom-uuid)))))
block-uuid (if isPageBlock nil (uuid block-uuid-or-page-name))
block-uuid' (if (and (not sibling) before block-uuid)
(let [block (db/entity [:block/uuid block-uuid])
Expand Down

0 comments on commit 85aeba9

Please sign in to comment.