mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2026-08-02 00:00:07 +08:00
Fix TypeScript v6 compatibility: remove CSS side-effect imports from .d.ts files
This commit is contained in:
Vendored
-1
@@ -1,4 +1,3 @@
|
||||
import "./css/CandidateBox.css";
|
||||
import Utilities from "../services/Utilities";
|
||||
import { CandidateBoxParams, CandidateBoxRenderParams, CandidateBoxShowParams, KeyboardOptions } from "./../interfaces";
|
||||
declare class CandidateBox {
|
||||
|
||||
Vendored
-1
@@ -1,4 +1,3 @@
|
||||
import "./css/Keyboard.css";
|
||||
import PhysicalKeyboard from "../services/PhysicalKeyboard";
|
||||
import Utilities from "../services/Utilities";
|
||||
import { KeyboardOptions, KeyboardInput, KeyboardButtonElements, KeyboardHandlerEvent, KeyboardElement } from "../interfaces";
|
||||
|
||||
Generated
+8
-7
@@ -35,7 +35,7 @@
|
||||
"postcss-loader": "^8.2.1",
|
||||
"style-loader": "^4.0.0",
|
||||
"terser-webpack-plugin": "^5.6.1",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript": "^6.0.3",
|
||||
"url-loader": "^4.1.1",
|
||||
"webpack": "^5.109.0",
|
||||
"webpack-cli": "^6.0.1",
|
||||
@@ -11644,10 +11644,11 @@
|
||||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.9.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
|
||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
||||
"version": "6.0.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz",
|
||||
"integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
@@ -20598,9 +20599,9 @@
|
||||
}
|
||||
},
|
||||
"typescript": {
|
||||
"version": "5.9.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
|
||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
||||
"version": "6.0.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz",
|
||||
"integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==",
|
||||
"dev": true
|
||||
},
|
||||
"unicode-canonical-property-names-ecmascript": {
|
||||
|
||||
+1
-1
@@ -65,7 +65,7 @@
|
||||
"postcss-loader": "^8.2.1",
|
||||
"style-loader": "^4.0.0",
|
||||
"terser-webpack-plugin": "^5.6.1",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript": "^6.0.3",
|
||||
"url-loader": "^4.1.1",
|
||||
"webpack": "^5.109.0",
|
||||
"webpack-cli": "^6.0.1",
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import "./css/CandidateBox.css";
|
||||
|
||||
import Utilities from "../services/Utilities";
|
||||
import {
|
||||
CandidateBoxParams,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import "./css/Keyboard.css";
|
||||
|
||||
import { getDefaultLayout } from "../services/KeyboardLayout";
|
||||
import PhysicalKeyboard from "../services/PhysicalKeyboard";
|
||||
import Utilities from "../services/Utilities";
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
"lib": ["es2020", "dom"],
|
||||
"moduleResolution": "node",
|
||||
"downlevelIteration": true,
|
||||
"ignoreDeprecations": "6.0",
|
||||
"strict": true
|
||||
},
|
||||
"include": ["src/lib"],
|
||||
|
||||
+5
-1
@@ -26,7 +26,11 @@ const banner = `
|
||||
|
||||
module.exports = {
|
||||
mode: "production",
|
||||
entry: './src/lib/index.ts',
|
||||
entry: [
|
||||
'./src/lib/components/css/Keyboard.css',
|
||||
'./src/lib/components/css/CandidateBox.css',
|
||||
'./src/lib/index.ts'
|
||||
],
|
||||
target: 'es5',
|
||||
output: {
|
||||
filename: 'index.js',
|
||||
|
||||
Reference in New Issue
Block a user