docs: show types in WASM examples

This commit is contained in:
rzmk 2024-06-20 16:51:07 -04:00
parent 25a2568ea0
commit 2a38998425
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ bun install czv
Or use `npm`, `pnpm`, or `yarn` instead of `bun`.
```js
```ts
import init, * as czv from "czv";
// Must run `await init()` or `initSync()` first for web use
await init();
@ -27,7 +27,7 @@ apple,2.50
banana,3.00
strawberry,1.50`;
const output = czv.rowCount({
const output: number = czv.rowCount({
file_data: data,
include_header_row: true,
});

View file

@ -7,6 +7,6 @@ banana,3.00
strawberry,1.50`,
};
const output = czv.rowCount(options);
const output: number = czv.rowCount(options);
console.log(output); // 4