mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-14 05:21:24 +00:00
Fix optional arguments in TypeScript
This commit is contained in:
@ -1,3 +1,3 @@
|
||||
import * as wbg from '../pkg/typescript_tests';
|
||||
|
||||
const opt_fn: (a: number | undefined) => number | undefined = wbg.opt_fn;
|
||||
const opt_fn: (a?: number) => number | undefined = wbg.opt_fn;
|
||||
|
Reference in New Issue
Block a user