@graphql-codegen/add 3.2.1-alpha-0814e49cc.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/typings/config.d.cts +13 -0
- package/typings/index.d.cts +7 -0
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/add",
|
|
3
|
-
"version": "3.2.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for adding custom content to your output file",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@graphql-codegen/plugin-helpers": "^2.6.
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "^2.6.2",
|
|
10
10
|
"tslib": "~2.4.0"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"exports": {
|
|
26
26
|
".": {
|
|
27
27
|
"require": {
|
|
28
|
-
"types": "./typings/index.d.
|
|
28
|
+
"types": "./typings/index.d.cts",
|
|
29
29
|
"default": "./cjs/index.js"
|
|
30
30
|
},
|
|
31
31
|
"import": {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface AddPluginConfig {
|
|
2
|
+
/**
|
|
3
|
+
* @default prepend
|
|
4
|
+
* @description Allow you to choose where to add the content.
|
|
5
|
+
*/
|
|
6
|
+
placement?: 'prepend' | 'content' | 'append';
|
|
7
|
+
/**
|
|
8
|
+
* @description The actual content you wish to add, either a string or array of strings.
|
|
9
|
+
* You can also specify a path to a local file and the content if it will be loaded by codegen.
|
|
10
|
+
*/
|
|
11
|
+
content: string | string[];
|
|
12
|
+
}
|
|
13
|
+
export declare const VALID_PLACEMENTS: AddPluginConfig['placement'][];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PluginFunction, Types } from '@graphql-codegen/plugin-helpers';
|
|
2
|
+
import { AddPluginConfig } from './config.cjs';
|
|
3
|
+
export declare const plugin: PluginFunction<AddPluginConfig>;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
plugin: PluginFunction<AddPluginConfig, Types.PluginOutput>;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|