Setting "importsNotUsedAsValues": "error"
Turning the "importsNotUsedAsValues" TS config value to "error". This will require us to use `import type` instead of `import` when we are importing a value that is only used as a type (and therefore that is dropped by the Typescript compiler). Why this change? This is a requirement to be able to use Svelte in the future. See https://github.com/sveltejs/svelte-preprocess/issues/206#issuecomment-663193798
This commit is contained in:
parent
d2b122efe5
commit
4d4f845b9e
44 changed files with 111 additions and 130 deletions
|
@ -1,4 +1,4 @@
|
|||
import { UserInputManager } from "../Phaser/UserInput/UserInputManager";
|
||||
import type { UserInputManager } from "../Phaser/UserInput/UserInputManager";
|
||||
import {HtmlUtils} from "./HtmlUtils";
|
||||
|
||||
export enum LayoutMode {
|
||||
|
@ -324,7 +324,7 @@ class LayoutManager {
|
|||
public addActionButton(id: string, text: string, callBack: Function, userInputManager: UserInputManager){
|
||||
//delete previous element
|
||||
this.removeActionButton(id, userInputManager);
|
||||
|
||||
|
||||
//create div and text html component
|
||||
const p = document.createElement('p');
|
||||
p.classList.add('action-body');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue