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

View file

@ -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",
{

View file

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