Skip to content

Commit 761b672

Browse files
refactor(simd): update type usage
1 parent 8504f58 commit 761b672

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/simd/src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { Maybe } from "@thi.ng/api";
12
import { base64Decode } from "@thi.ng/transducers-binary/base64";
23
import type { SIMD } from "./api.js";
34
import { BINARY } from "./binary.js";
@@ -28,7 +29,7 @@ export * from "./api.js";
2829
*
2930
* @param memory -
3031
*/
31-
export const init = (memory: WebAssembly.Memory): SIMD | undefined => {
32+
export const init = (memory: WebAssembly.Memory): Maybe<SIMD> => {
3233
const buf = memory.buffer;
3334
return <SIMD>{
3435
...new WebAssembly.Instance(

0 commit comments

Comments
 (0)