add count_ticks method

This commit is contained in:
Robin Appelman 2022-10-26 22:57:41 +02:00
commit def9f3da63
3 changed files with 27 additions and 1 deletions

View file

@ -11,4 +11,9 @@ export interface TickRange {
export async function edit(bytes: Uint8Array, options: EditOptions): Promise<Uint8Array> {
let m = await import(/* webpackChunkName: "demos-tf-edit" */ "../pkg/index.js");
return m.edit_js(bytes, options);
}
export async function count_ticks(bytes: Uint8Array): Promise<number> {
let m = await import(/* webpackChunkName: "demos-tf-edit" */ "../pkg/index.js");
return m.count_ticks(bytes);
}