mark deprecated methods

pull/16748/head
Rich Harris 4 days ago
parent afe737bb3b
commit 8329315c6b

@ -184,6 +184,9 @@ export class Payload {
} }
} }
/**
* @deprecated this is needed for legacy component bindings
*/
copy() { copy() {
const copy = new Payload(this.global, this.local, this.#parent, this.type); const copy = new Payload(this.global, this.local, this.#parent, this.type);
copy.#out = this.#out.map((item) => (item instanceof Payload ? item.copy() : item)); copy.#out = this.#out.map((item) => (item instanceof Payload ? item.copy() : item));
@ -193,6 +196,7 @@ export class Payload {
/** /**
* @param {Payload} other * @param {Payload} other
* @deprecated this is needed for legacy component bindings
*/ */
subsume(other) { subsume(other) {
if (this.global.mode !== other.global.mode) { if (this.global.mode !== other.global.mode) {

Loading…
Cancel
Save