Update TypeScript to 3.9.3 (#1640)

Co-authored-by: tk338g <tkhazamov@wayfair.com>
This commit is contained in:
Timur Khazamov 2020-05-24 21:17:25 +02:00 committed by GitHub
parent 6512ede9ca
commit d315e3dc4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

6
package-lock.json generated
View File

@ -18027,9 +18027,9 @@
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="
}, },
"typescript": { "typescript": {
"version": "3.8.3", "version": "3.9.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.3.tgz",
"integrity": "sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==" "integrity": "sha512-D/wqnB2xzNFIcoBG9FG8cXRDjiqSTbG2wd8DMZeQyJlP1vfTkIxH4GKveWaEBYySKIg+USu+E+EDIR47SqnaMQ=="
}, },
"unicode-canonical-property-names-ecmascript": { "unicode-canonical-property-names-ecmascript": {
"version": "1.0.4", "version": "1.0.4",

View File

@ -41,7 +41,7 @@
"react-scripts": "3.4.1", "react-scripts": "3.4.1",
"roughjs": "4.3.1", "roughjs": "4.3.1",
"socket.io-client": "2.3.0", "socket.io-client": "2.3.0",
"typescript": "3.8.3" "typescript": "3.9.3"
}, },
"devDependencies": { "devDependencies": {
"@types/lodash.throttle": "4.1.6", "@types/lodash.throttle": "4.1.6",

View File

@ -111,7 +111,7 @@ export const generateCollaborationLink = async () => {
return `${window.location.origin}${window.location.pathname}#room=${id},${key}`; 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( window.crypto.subtle.importKey(
"jwk", "jwk",
{ {

View File

@ -41,7 +41,7 @@ const _newElementBase = <T extends ExcalidrawElement>(
height = 0, height = 0,
angle = 0, angle = 0,
...rest ...rest
}: ElementConstructorOpts & Partial<ExcalidrawGenericElement>, }: ElementConstructorOpts & Omit<Partial<ExcalidrawGenericElement>, "type">,
) => ({ ) => ({
id: rest.id || randomId(), id: rest.id || randomId(),
type, type,