mirror of
https://codeberg.org/demostf/edit.git
synced 2026-06-03 20:04:06 +02:00
fix bindings
This commit is contained in:
parent
73729d014e
commit
06baf1b809
2 changed files with 2 additions and 1 deletions
|
|
@ -9,6 +9,6 @@ export interface TickRange {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function edit(bytes: Uint8Array, options: EditOptions): Promise<Uint8Array> {
|
export async function edit(bytes: Uint8Array, options: EditOptions): Promise<Uint8Array> {
|
||||||
let m = await import("../pkg/index.js");
|
let m = await import(/* webpackChunkName: "demos-tf-edit" */ "../pkg/index.js");
|
||||||
return m.edit(bytes, options);
|
return m.edit(bytes, options);
|
||||||
}
|
}
|
||||||
|
|
@ -7,6 +7,7 @@ use tf_demo_parser::demo::message::Message;
|
||||||
#[derive(Debug, Serialize, Deserialize, Default)]
|
#[derive(Debug, Serialize, Deserialize, Default)]
|
||||||
pub struct EditOptions {
|
pub struct EditOptions {
|
||||||
pub unlock_pov: bool,
|
pub unlock_pov: bool,
|
||||||
|
#[serde(default)]
|
||||||
pub remove_conditions: Vec<CondOptions>,
|
pub remove_conditions: Vec<CondOptions>,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub cut: Option<TickRange>,
|
pub cut: Option<TickRange>,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue