diff --git a/types/webassembly-js-api/README.md b/types/webassembly-js-api/README.md deleted file mode 100644 index a034040f92..0000000000 --- a/types/webassembly-js-api/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# WebAssembly typescript declaration file - -## Installation -``` -npm install @types/webassembly-js-api --save-dev -``` - -The WebAssembly namespace will now be available to your code TypeScript code. -See [WebAssembly JS API](http://webassembly.org/getting-started/js-api/) and the contents of -@types/webassembly-js-api/index.d.ts for more details. - -Do not use an `import * as WebAssembly from "webassembly-js-api"` as this will cause -the `tsc` to emit a `require` statement for the WebAssembly module which doesn't exist as -WebAssembly is part of the global namespace. - -Instead use a `///` statement. -Note: this `` maybe optional, but YMMV. diff --git a/types/webassembly-js-api/index.d.ts b/types/webassembly-js-api/index.d.ts index 300cdaab54..d8e7ee0932 100644 --- a/types/webassembly-js-api/index.d.ts +++ b/types/webassembly-js-api/index.d.ts @@ -1,7 +1,31 @@ // Type definitions for WebAssembly v1 (MVP) // Project: https://github.com/winksaville/test-webassembly-js-ts -// Definitions by: 01alchemist (https://twitter.com/01alchemist) && Wink Saville (https://github.com/winksaville) +// Definitions by: 01alchemist // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/** + * WebAssembly v1 (MVP) declaration file for TypeScript + * + * Authors: 01alchemist + * and Wink Saville + * + * ## Installation + * ``` + * npm install @types/webassembly-js-api --save-dev + * ``` + * + * The WebAssembly namespace will now be available to your code TypeScript code. + * See [WebAssembly JS API](http://webassembly.org/getting-started/js-api/) and the contents of + * @types/webassembly-js-api/index.d.ts for more details. + * + * Do not use an `import * as WebAssembly from "webassembly-js-api"` as this will cause + * the `tsc` to emit a `require` statement for the WebAssembly module which doesn't exist as + * WebAssembly is part of the global namespace. + * + * Instead use a `///` statement. + * Note: this `` maybe optional, but YMMV. + */ + declare namespace WebAssembly { /** * WebAssembly.Module