Skip to content

Commit

Permalink
add super calls to all store typedefs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Aug 28, 2022
1 parent cabf16d commit 846cdd1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/cmd/generators/stores/fragment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ export default ${globalStoreName}
const typeDefs = `import type { ${_data}, ${queryClass}, QueryStoreFetchParams} from '$houdini'
export declare class ${storeName} extends ${queryClass}<${_data}, {}> {
constructor() {}
constructor() {
// @ts-ignore
super({})
}
}
export const ${globalStoreName}: ${storeName}
Expand Down
5 changes: 3 additions & 2 deletions src/cmd/generators/stores/mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ export default ${globalStoreName}
const typeDefs = `import type { ${_input}, ${_data}, ${_optimistic}, MutationStore } from '$houdini'
export declare class ${storeName} extends MutationStore<${_data} | undefined, ${_input}, ${_optimistic}>{
constructor(...args) {
super(...args)
constructor() {
// @ts-ignore
super({})
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/cmd/generators/stores/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ export default ${globalStoreName}
const typeDefs = `import type { ${_input}, ${_data}, ${queryClass}, QueryStoreFetchParams} from '$houdini'
export declare class ${storeName} extends ${queryClass}<${_data}, ${_input}> {
constructor() {}
constructor() {
// @ts-ignore
super({})
}
}
export const ${globalStoreName}: ${storeName}
Expand Down
5 changes: 4 additions & 1 deletion src/cmd/generators/stores/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ export default ${globalStoreName}
const typeDefs = `import type { ${_input}, ${_data}, SubscriptionStore } from '$houdini'
export declare class ${storeName} extends SubscriptionStore<${_data} | undefined, ${_input}> {
constructor() {}
constructor() {
// @ts-ignore
super({})
}
}
export const ${globalStoreName}: ${storeName}
Expand Down

0 comments on commit 846cdd1

Please sign in to comment.