diff --git a/package-lock.json b/package-lock.json index 5a523baa..41ffc444 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18027,9 +18027,9 @@ "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" }, "typescript": { - "version": "3.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz", - "integrity": "sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==" + "version": "3.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.3.tgz", + "integrity": "sha512-D/wqnB2xzNFIcoBG9FG8cXRDjiqSTbG2wd8DMZeQyJlP1vfTkIxH4GKveWaEBYySKIg+USu+E+EDIR47SqnaMQ==" }, "unicode-canonical-property-names-ecmascript": { "version": "1.0.4", diff --git a/package.json b/package.json index ae79c76b..a3c1c0cd 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "react-scripts": "3.4.1", "roughjs": "4.3.1", "socket.io-client": "2.3.0", - "typescript": "3.8.3" + "typescript": "3.9.3" }, "devDependencies": { "@types/lodash.throttle": "4.1.6", diff --git a/src/data/index.ts b/src/data/index.ts index 6ce40c0d..a31e5594 100644 --- a/src/data/index.ts +++ b/src/data/index.ts @@ -111,7 +111,7 @@ export const generateCollaborationLink = async () => { return `${window.location.origin}${window.location.pathname}#room=${id},${key}`; }; -const getImportedKey = (key: string, usage: string) => +const getImportedKey = (key: string, usage: KeyUsage) => window.crypto.subtle.importKey( "jwk", { diff --git a/src/element/newElement.ts b/src/element/newElement.ts index f325c4c1..8c467005 100644 --- a/src/element/newElement.ts +++ b/src/element/newElement.ts @@ -41,7 +41,7 @@ const _newElementBase = ( height = 0, angle = 0, ...rest - }: ElementConstructorOpts & Partial, + }: ElementConstructorOpts & Omit, "type">, ) => ({ id: rest.id || randomId(), type,