Skip to content

Commit

Permalink
impr(type): 修改类型指向的一点提示问题
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleon committed Jan 11, 2024
1 parent 69e3ab9 commit 5e78104
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 124 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async function main () {

// CommandShortcut
logseq.App.registerCommandShortcut(
{ binding: logseq.settings?.pomodoroTechniqueKeybinding || "alt+o" },
{ binding: logseq.settings?.pomodoroTechniqueKeybinding as string|| "alt+o" },
async () => {
const durationMins = logseq.settings?.pomodoroTimeLength || 25
await logseq.Editor.insertAtEditingCursor(
Expand Down Expand Up @@ -202,7 +202,7 @@ async function main () {
const identity = type.split('_')[1]?.trim()
if (!identity) return
if (!durationMins){
durationMins = durationMins || logseq.settings?.pomodoroTimeLength || 25
durationMins = durationMins || logseq.settings?.pomodoroTimeLength as string || "25"
}
const pomoId = 'pomodoro-timer-start_' + identity
if (!startTime?.trim()) {
Expand Down
Loading

0 comments on commit 5e78104

Please sign in to comment.