ui: remove sharedworker types to prevent conflict

pull/304/head
undefined 3 years ago
parent 64a2c6ff82
commit 08f66e85bc

@ -53,10 +53,7 @@ fs.writeFileSync(path.resolve(process.cwd(), 'packages', 'ui-default', 'tsconfig
jsx: 'react',
module: 'es2020',
allowSyntheticDefaultImports: true,
target: 'ES2020',
lib: [
'ES2020',
],
target: 'es2020',
baseUrl: '.',
moduleResolution: 'node',
paths: {

@ -18,7 +18,6 @@
"@types/katex": "^0.11.1",
"@types/qrcode": "^1.4.2",
"@types/redux-logger": "^3.0.9",
"@types/sharedworker": "^0.0.64",
"@types/sockjs-client": "^1.5.1",
"@undefined-moe/monaco-yaml": "^2.5.1",
"ansi_up": "^5.1.0",

@ -45,8 +45,8 @@ function initSharedConn(path: string, port: MessagePort, cookie: any) {
sharedConnections[path][1].push(port);
}
// eslint-disable-next-line no-undef
onconnect = function (e) {
// @ts-ignore
onconnect = function (e) { // eslint-disable-line no-undef
const port = e.ports[0];
port.addEventListener('message', (msg: { data: RequestPayload }) => {

Loading…
Cancel
Save