Skip to content

Commit

Permalink
Update WebAssembly declaration
Browse files Browse the repository at this point in the history
TS 3.5 and above have WebAssembly types, so the ambient declaration in
declarations.d.ts needs to be compatible with that declaration. The
previous declaration, `declare const`, was not. This PR changes it to
`declare namespace`.
  • Loading branch information
sandersn committed Apr 9, 2019
1 parent 5117461 commit ce33ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion declarations.d.ts
Expand Up @@ -255,7 +255,7 @@ declare const hotAddUpdateChunk;
declare const parentHotUpdateCallback;
declare const $hotChunkFilename$;
declare const $hotMainFilename$;
declare const WebAssembly;
declare namespace WebAssembly {}
declare const importScripts;
declare const $crossOriginLoading$;
declare const chunkId;
Expand Down

0 comments on commit ce33ca7

Please sign in to comment.