Skip to content

Commit

Permalink
Added multiple queries to interface for FaustTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
TeresaGobble committed Mar 14, 2024
1 parent a54ce69 commit 8f6eaea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/faustwp-core/src/getWordPressProps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ export type WordPressTemplate = React.FC & {
export interface FaustTemplate<Data>
extends React.FC<FaustTemplateProps<Data>> {
query?: WordPressTemplate['query'];
queries?: {
query: DocumentNode;
variables?: (...args: QueryVariablesArgs) => {
[key: string]: any;
};
}[];
variables?: WordPressTemplate['variables'];
}

Expand Down

0 comments on commit 8f6eaea

Please sign in to comment.