We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8504f58 commit 761b672Copy full SHA for 761b672
packages/simd/src/index.ts
@@ -1,3 +1,4 @@
1
+import type { Maybe } from "@thi.ng/api";
2
import { base64Decode } from "@thi.ng/transducers-binary/base64";
3
import type { SIMD } from "./api.js";
4
import { BINARY } from "./binary.js";
@@ -28,7 +29,7 @@ export * from "./api.js";
28
29
*
30
* @param memory -
31
*/
-export const init = (memory: WebAssembly.Memory): SIMD | undefined => {
32
+export const init = (memory: WebAssembly.Memory): Maybe<SIMD> => {
33
const buf = memory.buffer;
34
return <SIMD>{
35
...new WebAssembly.Instance(
0 commit comments