mirror of
https://github.com/rzmk/czv.git
synced 2025-12-19 08:09:24 +00:00
docs: show types in WASM examples
This commit is contained in:
parent
25a2568ea0
commit
2a38998425
2 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue