mirror of
https://codeberg.org/demostf/edit.git
synced 2026-06-03 11:54:07 +02:00
add count_ticks method
This commit is contained in:
parent
4e734f66e8
commit
def9f3da63
3 changed files with 27 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue