Skip to content

Commit 962225a

Browse files
authored
Expose GraphiQLInterfaceProps alongside GraphiQLInterface (#4065)
* Expose GraphiQLInterfaceProps alongside GraphiQLInterface * Add changeset
1 parent fe6baad commit 962225a

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.changeset/pretty-guests-mix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphiql': patch
3+
---
4+
5+
Expose the `GraphiQLInterfaceProps` type.

packages/graphiql/src/GraphiQL.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ type VariableEditorProps = ComponentPropsWithoutRef<typeof VariableEditor>;
140140
type HeaderEditorProps = ComponentPropsWithoutRef<typeof HeaderEditor>;
141141
type ResponseEditorProps = ComponentPropsWithoutRef<typeof ResponseEditor>;
142142

143-
interface GraphiQLInterfaceProps
143+
export interface GraphiQLInterfaceProps
144144
extends EditorProps,
145145
AddSuffix<Pick<QueryEditorProps, 'onEdit'>, 'Query'>,
146146
AddSuffix<Pick<VariableEditorProps, 'onEdit'>, 'Variables'>,

packages/graphiql/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export {
1414
// https://github.com/graphql/graphiql/issues/4057
1515
GraphiQLInterface,
1616
type GraphiQLProps,
17+
type GraphiQLInterfaceProps,
1718
} from './GraphiQL';
1819

1920
export { HISTORY_PLUGIN } from '@graphiql/plugin-history';

0 commit comments

Comments
 (0)