@graphql-codegen/typescript-enum-array 2.2.1-alpha-7e47fba48.0 → 2.2.1-alpha-20220805095358-8b7e687d1

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 CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-enum-array",
3
- "version": "2.2.1-alpha-7e47fba48.0",
3
+ "version": "2.2.1-alpha-20220805095358-8b7e687d1",
4
4
  "description": "GraphQL Code Generator plugin for adding const array",
5
5
  "peerDependencies": {
6
6
  "graphql": "^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.1-alpha-7e47fba48.0",
9
+ "@graphql-codegen/plugin-helpers": "2.6.2-alpha-20220805095358-8b7e687d1",
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.ts",
28
+ "types": "./typings/index.d.cts",
29
29
  "default": "./cjs/index.js"
30
30
  },
31
31
  "import": {
@@ -0,0 +1,7 @@
1
+ export interface EnumArrayPluginConfig {
2
+ /**
3
+ * @description import enum types from generated type path
4
+ * if not given, omit import statement.
5
+ */
6
+ importFrom?: string;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { PluginFunction, Types } from '@graphql-codegen/plugin-helpers';
2
+ import { EnumArrayPluginConfig } from './config.cjs';
3
+ export declare const plugin: PluginFunction<EnumArrayPluginConfig>;
4
+ declare const _default: {
5
+ plugin: PluginFunction<EnumArrayPluginConfig, Types.PluginOutput>;
6
+ };
7
+ export default _default;