Fix optional arguments in TypeScript

This commit is contained in:
Danilo Bargen
2019-04-25 18:44:28 +02:00
parent d139228a34
commit 2384af21c1
3 changed files with 45 additions and 21 deletions

View File

@ -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;