diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-06 00:13:23 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-06 00:43:45 +0800 |
commit | 671a6eb222153b24e8fbf4371a0d97c51debb31e (patch) | |
tree | 3906ebe64b3ef5af8ce4e82161ef87ee594800f8 | |
parent | 9d18a1071cc9a4e3dca01ae76dd88ad3bf27bb30 (diff) |
docs: improve jsdoc
-rw-r--r-- | src/editor.mjs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/editor.mjs b/src/editor.mjs index 9bb62a9..2893f94 100644 --- a/src/editor.mjs +++ b/src/editor.mjs | |||
@@ -151,7 +151,7 @@ const getStateFromHash = hash => { | |||
151 | /** | 151 | /** |
152 | * get editor content from hash string | 152 | * get editor content from hash string |
153 | * | 153 | * |
154 | * @param {} hash | 154 | * @param {String} hash |
155 | */ | 155 | */ |
156 | const getContentFromHash = hash => { | 156 | const getContentFromHash = hash => { |
157 | const state = getStateFromHash(hash) | 157 | const state = getStateFromHash(hash) |
@@ -423,7 +423,7 @@ fetch(defaultApply) | |||
423 | /** | 423 | /** |
424 | * insideCodeblockForMap. Check if current token is inside code block {{{ | 424 | * insideCodeblockForMap. Check if current token is inside code block {{{ |
425 | * | 425 | * |
426 | * @param {} anchor | 426 | * @param {Anchor} anchor |
427 | */ | 427 | */ |
428 | const insideCodeblockForMap = anchor => { | 428 | const insideCodeblockForMap = anchor => { |
429 | const token = cm.getTokenAt(anchor) | 429 | const token = cm.getTokenAt(anchor) |