Skip to content

Commit

Permalink
Fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Nov 28, 2024
1 parent 66ed235 commit 98d08d5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions crates/cli/tests/reference/echo.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ export function echo_option_vec_string(a?: (string)[]): (string)[] | undefined;
export function echo_option_struct(a?: Foo): Foo | undefined;
export function echo_option_vec_struct(a?: (Foo)[]): (Foo)[] | undefined;
export class Foo {
private constructor();
free(): void;
}
28 changes: 14 additions & 14 deletions crates/typescript-tests/src/getters_setters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub struct ColorWithGetters {
r: f64,
g: f64,
b: f64,
a: u8,
_g: f64,
_b: f64,
_a: u8,
}

#[wasm_bindgen]
Expand All @@ -14,9 +14,9 @@ impl ColorWithGetters {
pub fn new() -> Self {
Self {
r: 0.0,
g: 0.0,
b: 0.0,
a: 0,
_g: 0.0,
_b: 0.0,
_a: 0,
}
}

Expand All @@ -34,8 +34,8 @@ impl ColorWithGetters {
#[wasm_bindgen]
pub struct ColorWithSetters {
r: f64,
g: f64,
b: f64,
_g: f64,
_b: f64,
a: u8,
}

Expand All @@ -45,8 +45,8 @@ impl ColorWithSetters {
pub fn new() -> Self {
Self {
r: 0.0,
g: 0.0,
b: 0.0,
_g: 0.0,
_b: 0.0,
a: 0,
}
}
Expand All @@ -70,8 +70,8 @@ impl ColorWithSetters {
#[wasm_bindgen]
pub struct ColorWithGetterAndSetter {
r: f64,
g: f64,
b: f64,
_g: f64,
_b: f64,
a: u8,
}

Expand All @@ -81,8 +81,8 @@ impl ColorWithGetterAndSetter {
pub fn new() -> Self {
Self {
r: 0.0,
g: 0.0,
b: 0.0,
_g: 0.0,
_b: 0.0,
a: 0,
}
}
Expand Down

0 comments on commit 98d08d5

Please sign in to comment.