Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

0918nobita/wasm-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasm-ts

TypeScript type definitions for WebAssembly API

Installation

npm

npm i -S wasm-ts

yarn

yarn add wasm-ts

Example

import 'wasm-ts';

WebAssembly.instantiateStreaming(fetch('example.wasm')).then(obj => {
  obj.instance.exports.func();
});

Changelog

[0.1.3] - 2019.05.07

  • Support webpack + ts-loader
  • Change module structure (Redefine as ambient namespace)
    • import { WebAssembly } from 'wasm-ts'import 'wasm-ts';

[0.1.2] - 2019.05.06

  • Add LICENSE
  • Add README.md

[0.1.0] - 2019.05.06

  • Add index.d.ts (declaration file)