Skip to content

Commit 5501c62

Browse files
taro-28n1ru4l
andauthored
feat(plugin/add): export config type (#9987)
* feat(plugin/add): export config * Add changeset for @graphql-codegen/add * update changeset * Update polite-dancers-warn.md --------- Co-authored-by: Laurin Quast <[email protected]>
1 parent 1be6e65 commit 5501c62

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.changeset/polite-dancers-warn.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@graphql-codegen/add': patch
3+
---
4+
5+
Export configuration types (e.g. `AddPluginConfig`) from the entry point.
6+
7+
```ts
8+
import type { AddPluginConfig } from '@graphql-codegen/add'
9+
```

packages/plugins/other/add/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { PluginFunction, Types } from '@graphql-codegen/plugin-helpers';
22
import { GraphQLSchema } from 'graphql';
33
import { AddPluginConfig, VALID_PLACEMENTS } from './config.js';
44

5+
export * from './config.js';
6+
57
export const plugin: PluginFunction<AddPluginConfig> = async (
68
schema: GraphQLSchema,
79
documents: Types.DocumentFile[],

0 commit comments

Comments
 (0)