Skip to content

Commit

Permalink
refactor: comment issues about ts
Browse files Browse the repository at this point in the history
Signed-off-by: ElSalvo96 <[email protected]>
  • Loading branch information
ElSalvo96 committed Oct 19, 2024
1 parent 4e7673c commit 03cbf3b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import { createEventDispatcher } from 'svelte'
import emojiReplaceDict from './extension/emojiIdMap.json'
export let query: string = ''
export let query = ''
let items = Object.entries(emojiReplaceDict)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import MentionPopup from './MentionPopup.svelte'
import Popup from './Popup.svelte'
export let query: string = ''
export let query = ''
export let clientRect: () => ClientRect
export let command: (props: any) => void
export let close: () => void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import { Label, ListView, resizeObserver } from '@hcengineering/ui'
import { createEventDispatcher } from 'svelte'
export let query: string = ''
export let query = ''
let items: SearchItem[] = []
Expand All @@ -29,15 +29,15 @@
let scrollContainer: HTMLElement
let selection = 0
function dispatchItem (item: SearchResultDoc): void {
function dispatchItem(item: SearchResultDoc): void {
dispatch('close', {
id: item.id,
label: item.shortTitle ?? item.title,
objectclass: item.doc._class
})
}
export function onKeyDown (key: KeyboardEvent): boolean {
export function onKeyDown(key: KeyboardEvent): boolean {
if (key.key === 'ArrowDown') {
key.stopPropagation()
key.preventDefault()
Expand Down
2 changes: 1 addition & 1 deletion plugins/text-editor-resources/src/components/Popup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import { onDestroy, onMount } from 'svelte'
import DummyPopup from './DummyPopup.svelte'
export let query: string = ''
export let query = ''
export let clientRect: () => ClientRect
export let command: (props: any) => void
export let close: () => void
Expand Down
5 changes: 3 additions & 2 deletions plugins/text-editor-resources/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
"declarationDir": "./types"
"declarationDir": "./types",
"resolveJsonModule": true
}
}
}

0 comments on commit 03cbf3b

Please sign in to comment.