mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Remove .ts from imports
Webpack supports it but TypeScript does not
This commit is contained in:
parent
d9fe1bedca
commit
5092be9e36
5 changed files with 9 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
import { messageActiveTab } from "@src/lib/messaging.ts"
|
||||
import * as _EditorCmds from "@src/lib/editor.ts"
|
||||
import { messageActiveTab } from "@src/lib/messaging"
|
||||
import * as _EditorCmds from "@src/lib/editor"
|
||||
|
||||
type cmdsType = typeof _EditorCmds
|
||||
type ArgumentsType<T> = T extends (elem, ...args: infer U) => any ? U : never
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { browserBg } from "@src/lib/webext.ts"
|
||||
import { browserBg } from "@src/lib/webext"
|
||||
import * as Completions from "@src/completions"
|
||||
import * as config from "@src/lib/config"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import * as Perf from "@src/perf"
|
||||
import { browserBg } from "@src/lib/webext.ts"
|
||||
import { browserBg } from "@src/lib/webext"
|
||||
import { enumerate } from "@src/lib/itertools"
|
||||
import * as Containers from "@src/lib/containers"
|
||||
import * as Completions from "@src/completions"
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import { browserBg } from "@src/lib/webext.ts"
|
||||
import { browserBg } from "@src/lib/webext"
|
||||
import * as Completions from "@src/completions"
|
||||
|
||||
class WindowCompletionOption extends Completions.CompletionOptionHTML
|
||||
class WindowCompletionOption
|
||||
extends Completions.CompletionOptionHTML
|
||||
implements Completions.CompletionOptionFuse {
|
||||
public fuseKeys = []
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@ import {
|
|||
messageOwnTab,
|
||||
addListener,
|
||||
attributeCaller,
|
||||
} from "@src/lib/messaging.ts"
|
||||
} from "@src/lib/messaging"
|
||||
import * as DOM from "@src/lib/dom"
|
||||
import * as _EditorCmds from "@src/lib/editor.ts"
|
||||
import * as _EditorCmds from "@src/lib/editor"
|
||||
|
||||
export const EditorCmds = new Proxy(_EditorCmds, {
|
||||
get(target, property) {
|
||||
|
|
Loading…
Add table
Reference in a new issue