fix: Update methods to match TypeScript type (#6331)

This commit is contained in:
Parker Chen
2025-12-15 12:52:10 -05:00
committed by GitHub
parent 7fa1ff230e
commit cfa1156fe0
2 changed files with 14 additions and 0 deletions

View File

@@ -97,6 +97,14 @@ class Query {
serialize() {
return this.state;
}
reset() {
return q(this.state.table);
}
serializeAsString() {
return JSON.stringify(this.serialize());
}
}
export function q(table) {

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [BHChen24]
---
Updates the `Query` class in `packages/api/app/query.js` to include the missing `reset()` and `serializeAsString()` methods.