# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/decibels/hotfix-ts-expect-error.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 # --- T2-COPYRIGHT-END --- TypeScript 6 reports the bind_property_full overload mismatch at the null argument, move the @ts-expect-error directives there. diff -urp a/src/playback-rate-button.ts b/src/playback-rate-button.ts --- a/src/playback-rate-button.ts 2026-11-24 21:01:41.763531155 +0000 +++ b/src/playback-rate-button.ts 2026-11-24 21:01:41.777471488 +0000 @@ -36,7 +36,6 @@ export class APPlaybackRateButton extend GObject.BindingFlags.SYNC_CREATE, ); - // @ts-expect-error GObject.BindingTransformFunc return arguments are not correctly typed window.stream.bind_property_full( "rate", this._label, @@ -46,6 +45,7 @@ export class APPlaybackRateButton extend const rounded = from.toFixed(1); return [true, `× ${rounded}`]; }, + // @ts-expect-error GObject.BindingTransformFunc return arguments are not correctly typed null, ); } diff -urp a/src/player.ts b/src/player.ts --- a/src/player.ts 2026-11-24 21:01:41.749531293 +0000 +++ b/src/player.ts 2026-11-24 21:01:41.777380789 +0000 @@ -68,7 +68,6 @@ export class APPlayerState extends Adw.B widget.set_direction(Gtk.TextDirection.LTR); } - // @ts-expect-error GObject.BindingTransformFunc return arguments are not correctly typed window.stream.bind_property_full( "duration", this._duration_label, @@ -77,10 +76,10 @@ export class APPlayerState extends Adw.B () => { return [true, micro_to_string(window.stream.get_duration())]; }, + // @ts-expect-error GObject.BindingTransformFunc return arguments are not correctly typed null, ); - // @ts-expect-error GObject.BindingTransformFunc return arguments are not correctly typed window.stream.bind_property_full( "timestamp", this._timestamp_label, @@ -89,6 +88,7 @@ export class APPlayerState extends Adw.B (_binding, from: number) => { return [true, micro_to_string(from)]; }, + // @ts-expect-error GObject.BindingTransformFunc return arguments are not correctly typed null, ); @@ -105,7 +105,6 @@ export class APPlayerState extends Adw.B }, ); - // @ts-expect-error GObject.BindingTransformFunc return arguments are not correctly typed window.stream.bind_property_full( "playing", this._playback_image, @@ -114,10 +113,10 @@ export class APPlayerState extends Adw.B (_binding, from: boolean) => { return [true, from ? "pause-large-symbolic" : "play-large-symbolic"]; }, + // @ts-expect-error GObject.BindingTransformFunc return arguments are not correctly typed null, ); - // @ts-expect-error GObject.BindingTransformFunc return arguments are not correctly typed window.stream.bind_property_full( "playing", this._playback_button, @@ -126,10 +125,10 @@ export class APPlayerState extends Adw.B (_binding, from: boolean) => { return [true, from ? _("Pause") : _("Play")]; }, + // @ts-expect-error GObject.BindingTransformFunc return arguments are not correctly typed null, ); - // @ts-expect-error GObject.BindingTransformFunc return arguments are not correctly typed window.stream.bind_property_full( "timestamp", this._waveform, @@ -145,6 +144,7 @@ export class APPlayerState extends Adw.B Math.max(Math.min(from / window.stream.get_duration() || 0, 1), 0), ]; }, + // @ts-expect-error GObject.BindingTransformFunc return arguments are not correctly typed null, );