@graphql-markdown/core 1.17.0 → 1.17.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.
Files changed (60) hide show
  1. package/dist/event-emitter.d.ts.map +1 -1
  2. package/dist/event-emitter.js +1 -3
  3. package/dist/event-handlers.d.ts +6 -3
  4. package/dist/event-handlers.d.ts.map +1 -1
  5. package/dist/event-handlers.js +10 -7
  6. package/dist/event-map.d.ts +7 -0
  7. package/dist/event-map.d.ts.map +1 -1
  8. package/dist/event-map.js +8 -0
  9. package/dist/events/base.d.ts +8 -3
  10. package/dist/events/base.d.ts.map +1 -1
  11. package/dist/events/base.js +6 -5
  12. package/dist/events/diff-check.d.ts +11 -11
  13. package/dist/events/diff-check.d.ts.map +1 -1
  14. package/dist/events/diff-check.js +5 -8
  15. package/dist/events/generate-index-metafile.d.ts +8 -11
  16. package/dist/events/generate-index-metafile.d.ts.map +1 -1
  17. package/dist/events/generate-index-metafile.js +5 -11
  18. package/dist/events/index.d.ts +4 -1
  19. package/dist/events/index.d.ts.map +1 -1
  20. package/dist/events/index.js +7 -2
  21. package/dist/events/print-type-events.d.ts +33 -0
  22. package/dist/events/print-type-events.d.ts.map +1 -0
  23. package/dist/events/print-type-events.js +35 -0
  24. package/dist/events/print-type.d.ts +84 -0
  25. package/dist/events/print-type.d.ts.map +1 -0
  26. package/dist/events/print-type.js +73 -0
  27. package/dist/events/render-homepage.d.ts +6 -7
  28. package/dist/events/render-homepage.d.ts.map +1 -1
  29. package/dist/events/render-homepage.js +5 -5
  30. package/dist/events/render-root-types.d.ts +6 -7
  31. package/dist/events/render-root-types.d.ts.map +1 -1
  32. package/dist/events/render-root-types.js +5 -5
  33. package/dist/events/render-type-entities.d.ts +7 -9
  34. package/dist/events/render-type-entities.d.ts.map +1 -1
  35. package/dist/events/render-type-entities.js +5 -8
  36. package/dist/events/schema-events.d.ts +4 -0
  37. package/dist/events/schema-events.d.ts.map +1 -1
  38. package/dist/events/schema-events.js +4 -0
  39. package/dist/events/schema-load.d.ts +13 -9
  40. package/dist/events/schema-load.d.ts.map +1 -1
  41. package/dist/events/schema-load.js +8 -8
  42. package/dist/generator.d.ts +79 -1
  43. package/dist/generator.d.ts.map +1 -1
  44. package/dist/generator.js +222 -49
  45. package/dist/index.d.ts +9 -1
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +16 -1
  48. package/dist/printer.d.ts +3 -3
  49. package/dist/printer.d.ts.map +1 -1
  50. package/dist/printer.js +3 -3
  51. package/dist/renderer.d.ts +10 -10
  52. package/dist/renderer.d.ts.map +1 -1
  53. package/dist/renderer.js +12 -22
  54. package/package.json +9 -9
  55. package/dist/event-types.d.ts +0 -313
  56. package/dist/event-types.d.ts.map +0 -1
  57. package/dist/event-types.js +0 -309
  58. package/dist/hooks.d.ts +0 -10
  59. package/dist/hooks.d.ts.map +0 -1
  60. package/dist/hooks.js +0 -33
@@ -3,20 +3,19 @@
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
6
- import type { DefaultAction } from "@graphql-markdown/types";
7
- import { CancellableEvent } from "./base";
6
+ import { CancellableEvent, CancellableEventOptions } from "./base";
8
7
  /**
9
8
  * Event emitted before/after rendering homepage.
10
9
  *
11
10
  * @category Events
12
11
  */
13
12
  export declare class RenderHomepageEvent extends CancellableEvent {
14
- /** Output directory for homepage */
15
- readonly outputDir: string;
13
+ /** Event data containing output directory */
14
+ readonly data: {
15
+ outputDir: string;
16
+ };
16
17
  constructor(data: {
17
18
  outputDir: string;
18
- defaultAction?: DefaultAction;
19
- cancellable?: boolean;
20
- });
19
+ }, options?: CancellableEventOptions);
21
20
  }
22
21
  //# sourceMappingURL=render-homepage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-homepage.d.ts","sourceRoot":"","sources":["../../src/events/render-homepage.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1C;;;;GAIG;AACH,qBAAa,mBAAoB,SAAQ,gBAAgB;IACvD,oCAAoC;IACpC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,YAAY,IAAI,EAAE;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,EAGA;CACF"}
1
+ {"version":3,"file":"render-homepage.d.ts","sourceRoot":"","sources":["../../src/events/render-homepage.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC;AAEnE;;;;GAIG;AACH,qBAAa,mBAAoB,SAAQ,gBAAgB;IACvD,6CAA6C;IAC7C,QAAQ,CAAC,IAAI,EAAE;QACb,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IAEF,YACE,IAAI,EAAE;QACJ,SAAS,EAAE,MAAM,CAAC;KACnB,EACD,OAAO,CAAC,EAAE,uBAAuB,EAIlC;CACF"}
@@ -13,11 +13,11 @@ const base_1 = require("./base");
13
13
  * @category Events
14
14
  */
15
15
  class RenderHomepageEvent extends base_1.CancellableEvent {
16
- /** Output directory for homepage */
17
- outputDir;
18
- constructor(data) {
19
- super(data.cancellable, data.defaultAction);
20
- this.outputDir = data.outputDir;
16
+ /** Event data containing output directory */
17
+ data;
18
+ constructor(data, options) {
19
+ super(options);
20
+ this.data = data;
21
21
  }
22
22
  }
23
23
  exports.RenderHomepageEvent = RenderHomepageEvent;
@@ -3,20 +3,19 @@
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
6
- import type { DefaultAction } from "@graphql-markdown/types";
7
- import { CancellableEvent } from "./base";
6
+ import { CancellableEvent, CancellableEventOptions } from "./base";
8
7
  /**
9
8
  * Event emitted before/after rendering root types.
10
9
  *
11
10
  * @category Events
12
11
  */
13
12
  export declare class RenderRootTypesEvent extends CancellableEvent {
14
- /** Root types to render */
15
- readonly rootTypes: unknown;
13
+ /** Event data containing root types */
14
+ readonly data: {
15
+ rootTypes: unknown;
16
+ };
16
17
  constructor(data: {
17
18
  rootTypes: unknown;
18
- defaultAction?: DefaultAction;
19
- cancellable?: boolean;
20
- });
19
+ }, options?: CancellableEventOptions);
21
20
  }
22
21
  //# sourceMappingURL=render-root-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-root-types.d.ts","sourceRoot":"","sources":["../../src/events/render-root-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1C;;;;GAIG;AACH,qBAAa,oBAAqB,SAAQ,gBAAgB;IACxD,2BAA2B;IAC3B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAE5B,YAAY,IAAI,EAAE;QAChB,SAAS,EAAE,OAAO,CAAC;QACnB,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,EAGA;CACF"}
1
+ {"version":3,"file":"render-root-types.d.ts","sourceRoot":"","sources":["../../src/events/render-root-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC;AAEnE;;;;GAIG;AACH,qBAAa,oBAAqB,SAAQ,gBAAgB;IACxD,uCAAuC;IACvC,QAAQ,CAAC,IAAI,EAAE;QACb,SAAS,EAAE,OAAO,CAAC;KACpB,CAAC;IAEF,YACE,IAAI,EAAE;QACJ,SAAS,EAAE,OAAO,CAAC;KACpB,EACD,OAAO,CAAC,EAAE,uBAAuB,EAIlC;CACF"}
@@ -13,11 +13,11 @@ const base_1 = require("./base");
13
13
  * @category Events
14
14
  */
15
15
  class RenderRootTypesEvent extends base_1.CancellableEvent {
16
- /** Root types to render */
17
- rootTypes;
18
- constructor(data) {
19
- super(data.cancellable, data.defaultAction);
20
- this.rootTypes = data.rootTypes;
16
+ /** Event data containing root types */
17
+ data;
18
+ constructor(data, options) {
19
+ super(options);
20
+ this.data = data;
21
21
  }
22
22
  }
23
23
  exports.RenderRootTypesEvent = RenderRootTypesEvent;
@@ -3,23 +3,21 @@
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
6
- import type { DefaultAction } from "@graphql-markdown/types";
7
- import { CancellableEvent } from "./base";
6
+ import { CancellableEvent, CancellableEventOptions } from "./base";
8
7
  /**
9
8
  * Event emitted before/after rendering type entities.
10
9
  *
11
10
  * @category Events
12
11
  */
13
12
  export declare class RenderTypeEntitiesEvent extends CancellableEvent {
14
- /** Name of the type entity */
15
- readonly name: string;
16
- /** File path where entity will be rendered */
17
- readonly filePath: string;
13
+ /** Event data containing name and file path */
14
+ readonly data: {
15
+ name: string;
16
+ filePath: string;
17
+ };
18
18
  constructor(data: {
19
19
  name: string;
20
20
  filePath: string;
21
- defaultAction?: DefaultAction;
22
- cancellable?: boolean;
23
- });
21
+ }, options?: CancellableEventOptions);
24
22
  }
25
23
  //# sourceMappingURL=render-type-entities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-type-entities.d.ts","sourceRoot":"","sources":["../../src/events/render-type-entities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1C;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,gBAAgB;IAC3D,8BAA8B;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B,YAAY,IAAI,EAAE;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,EAIA;CACF"}
1
+ {"version":3,"file":"render-type-entities.d.ts","sourceRoot":"","sources":["../../src/events/render-type-entities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC;AAEnE;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,gBAAgB;IAC3D,+CAA+C;IAC/C,QAAQ,CAAC,IAAI,EAAE;QACb,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF,YACE,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;KAClB,EACD,OAAO,CAAC,EAAE,uBAAuB,EAIlC;CACF"}
@@ -13,14 +13,11 @@ const base_1 = require("./base");
13
13
  * @category Events
14
14
  */
15
15
  class RenderTypeEntitiesEvent extends base_1.CancellableEvent {
16
- /** Name of the type entity */
17
- name;
18
- /** File path where entity will be rendered */
19
- filePath;
20
- constructor(data) {
21
- super(data.cancellable, data.defaultAction);
22
- this.name = data.name;
23
- this.filePath = data.filePath;
16
+ /** Event data containing name and file path */
17
+ data;
18
+ constructor(data, options) {
19
+ super(options);
20
+ this.data = data;
24
21
  }
25
22
  }
26
23
  exports.RenderTypeEntitiesEvent = RenderTypeEntitiesEvent;
@@ -11,5 +11,9 @@ export declare const SchemaEvents: {
11
11
  readonly BEFORE_LOAD: "schema:beforeLoad";
12
12
  /** Emitted after loading GraphQL schema */
13
13
  readonly AFTER_LOAD: "schema:afterLoad";
14
+ /** Emitted before mapping GraphQL schema */
15
+ readonly BEFORE_MAP: "schema:beforeMap";
16
+ /** Emitted after mapping GraphQL schema */
17
+ readonly AFTER_MAP: "schema:afterMap";
14
18
  };
15
19
  //# sourceMappingURL=schema-events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-events.d.ts","sourceRoot":"","sources":["../../src/events/schema-events.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY;IACvB,4CAA4C;;IAE5C,2CAA2C;;CAEnC,CAAC"}
1
+ {"version":3,"file":"schema-events.d.ts","sourceRoot":"","sources":["../../src/events/schema-events.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY;IACvB,4CAA4C;;IAE5C,2CAA2C;;IAE3C,4CAA4C;;IAE5C,2CAA2C;;CAEnC,CAAC"}
@@ -14,4 +14,8 @@ exports.SchemaEvents = {
14
14
  BEFORE_LOAD: "schema:beforeLoad",
15
15
  /** Emitted after loading GraphQL schema */
16
16
  AFTER_LOAD: "schema:afterLoad",
17
+ /** Emitted before mapping GraphQL schema */
18
+ BEFORE_MAP: "schema:beforeMap",
19
+ /** Emitted after mapping GraphQL schema */
20
+ AFTER_MAP: "schema:afterMap",
17
21
  };
@@ -3,20 +3,24 @@
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
6
- import type { DefaultAction } from "@graphql-markdown/types";
7
- import { CancellableEvent } from "./base";
6
+ import type { GraphQLSchema, Maybe, SchemaMap } from "@graphql-markdown/types";
7
+ import { CancellableEvent, CancellableEventOptions } from "./base";
8
8
  /**
9
9
  * Event emitted before/after loading a GraphQL schema.
10
10
  *
11
11
  * @category Events
12
12
  */
13
- export declare class SchemaLoadEvent extends CancellableEvent {
14
- /** Path or pointer to the schema location */
15
- readonly schemaLocation: string;
13
+ export declare class SchemaEvent extends CancellableEvent {
14
+ /** Event data containing schema location, schema, and root types */
15
+ readonly data: {
16
+ schemaLocation?: string;
17
+ schema?: Maybe<GraphQLSchema>;
18
+ rootTypes?: Maybe<SchemaMap>;
19
+ };
16
20
  constructor(data: {
17
- schemaLocation: string;
18
- defaultAction?: DefaultAction;
19
- cancellable?: boolean;
20
- });
21
+ schemaLocation?: string;
22
+ schema?: Maybe<GraphQLSchema>;
23
+ rootTypes?: Maybe<SchemaMap>;
24
+ }, options?: CancellableEventOptions);
21
25
  }
22
26
  //# sourceMappingURL=schema-load.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-load.d.ts","sourceRoot":"","sources":["../../src/events/schema-load.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1C;;;;GAIG;AACH,qBAAa,eAAgB,SAAQ,gBAAgB;IACnD,6CAA6C;IAC7C,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAEhC,YAAY,IAAI,EAAE;QAChB,cAAc,EAAE,MAAM,CAAC;QACvB,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,EAGA;CACF"}
1
+ {"version":3,"file":"schema-load.d.ts","sourceRoot":"","sources":["../../src/events/schema-load.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC;AAEnE;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,gBAAgB;IAC/C,oEAAoE;IACpE,QAAQ,CAAC,IAAI,EAAE;QACb,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;QAC9B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;KAC9B,CAAC;IAEF,YACE,IAAI,EAAE;QACJ,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;QAC9B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;KAC9B,EACD,OAAO,CAAC,EAAE,uBAAuB,EAIlC;CACF"}
@@ -5,19 +5,19 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.SchemaLoadEvent = void 0;
8
+ exports.SchemaEvent = void 0;
9
9
  const base_1 = require("./base");
10
10
  /**
11
11
  * Event emitted before/after loading a GraphQL schema.
12
12
  *
13
13
  * @category Events
14
14
  */
15
- class SchemaLoadEvent extends base_1.CancellableEvent {
16
- /** Path or pointer to the schema location */
17
- schemaLocation;
18
- constructor(data) {
19
- super(data.cancellable, data.defaultAction);
20
- this.schemaLocation = data.schemaLocation;
15
+ class SchemaEvent extends base_1.CancellableEvent {
16
+ /** Event data containing schema location, schema, and root types */
17
+ data;
18
+ constructor(data, options) {
19
+ super(options);
20
+ this.data = data;
21
21
  }
22
22
  }
23
- exports.SchemaLoadEvent = SchemaLoadEvent;
23
+ exports.SchemaEvent = SchemaEvent;
@@ -7,7 +7,85 @@
7
7
  *
8
8
  * @packageDocumentation
9
9
  */
10
- import type { GeneratorOptions } from "@graphql-markdown/types";
10
+ import type { DirectiveName, Formatter, GeneratorOptions, GraphQLDirective, GraphQLSchema, LoaderOption, Maybe, MetaInfo, PackageName, TypeDiffMethod } from "@graphql-markdown/types";
11
+ /**
12
+ * Supported file extensions for generated documentation files.
13
+ *
14
+ * @remarks
15
+ * - MDX: MDX file extension (.mdx) for React component-enabled markdown
16
+ * - MD: Standard markdown file extension (.md)
17
+ */
18
+ export declare const FILE_EXTENSION: {
19
+ readonly MDX: ".mdx";
20
+ readonly MD: ".md";
21
+ };
22
+ /**
23
+ * Asynchronously loads an MDX module dynamically.
24
+ *
25
+ * @param mdxParser - The MDX parser package name or path to import. Can be null or undefined.
26
+ * @returns A promise that resolves to the imported module, or undefined if:
27
+ * - The mdxParser parameter is null or undefined
28
+ * - An error occurs during import (logs a warning and returns undefined)
29
+ *
30
+ * @internal
31
+ */
32
+ export declare const loadMDXModule: (mdxParser: Maybe<string | PackageName>) => Promise<unknown>;
33
+ /**
34
+ * Extracts a formatter from an MDX module.
35
+ *
36
+ * Checks for formatter functions in the following order:
37
+ * 1. A `createMDXFormatter` factory function (for internal/advanced usage)
38
+ * 2. Individual exported formatter functions (e.g., `formatMDXBadge`, `formatMDXAdmonition`)
39
+ *
40
+ * @param mdxModule - The loaded MDX module that may contain formatter exports
41
+ * @param meta - Optional metadata to pass to the formatter factory
42
+ * @returns A partial Formatter with the found functions, or undefined if none found
43
+ *
44
+ * @internal
45
+ */
46
+ export declare const getFormatterFromMDXModule: (mdxModule: unknown, meta?: MetaInfo) => Partial<Formatter> | undefined;
47
+ /**
48
+ * Loads a GraphQL schema from the specified location using configured document loaders.
49
+ *
50
+ * @param schemaLocation - The location/path of the GraphQL schema to load (e.g., file path, URL, or glob pattern).
51
+ * @param loadersList - Optional loader configuration for customizing how the schema is loaded.
52
+ *
53
+ * @returns A promise that resolves to the loaded GraphQL schema, or undefined if:
54
+ * - The loaders cannot be initialized
55
+ * - An error occurs during schema loading
56
+ *
57
+ * @internal
58
+ */
59
+ export declare const loadGraphqlSchema: (schemaLocation: string, loadersList: Maybe<LoaderOption>) => Promise<Maybe<GraphQLSchema>>;
60
+ /**
61
+ * Checks if there are differences in the GraphQL schema compared to a previous version.
62
+ *
63
+ * @param schema - The GraphQL schema to check for differences.
64
+ * @param schemaLocation - The location/path of the schema file for logging purposes.
65
+ * @param diffMethod - The method to use for detecting differences. If set to `NONE`, changes detection is skipped.
66
+ * @param tmpDir - The temporary directory path used for storing and comparing schema versions.
67
+ *
68
+ * @returns A promise that resolves to `true` if changes are detected or if diff method is `NONE`,
69
+ * or `false` if no changes are detected.
70
+ *
71
+ * @remarks
72
+ * When no changes are detected, a log message is generated indicating that the schema is unchanged.
73
+ */
74
+ export declare const checkSchemaDifferences: (schema: GraphQLSchema, schemaLocation: string, diffMethod: Maybe<TypeDiffMethod>, tmpDir: string) => Promise<boolean>;
75
+ /**
76
+ * Resolves and retrieves GraphQL directive objects from the schema based on their names.
77
+ *
78
+ * Takes two lists of directive names (for "only" and "skip" documentation directives),
79
+ * looks them up in the provided GraphQL schema, and returns the resolved directive objects.
80
+ *
81
+ * @param onlyDocDirective - A directive name or array of directive names for "only" documentation filtering
82
+ * @param skipDocDirective - A directive name or array of directive names for "skip" documentation filtering
83
+ * @param schema - The GraphQL schema to resolve directives from
84
+ *
85
+ * @returns A tuple containing two arrays: the first with resolved "only" directives,
86
+ * the second with resolved "skip" directives. Only defined directives are included.
87
+ */
88
+ export declare const resolveSkipAndOnlyDirectives: (onlyDocDirective: Maybe<DirectiveName[] | DirectiveName>, skipDocDirective: Maybe<DirectiveName[] | DirectiveName>, schema: GraphQLSchema) => GraphQLDirective[][];
11
89
  /**
12
90
  * Main entry point for generating Markdown documentation from a GraphQL schema.
13
91
  *
@@ -1 +1 @@
1
- {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../src/generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAGV,gBAAgB,EAKjB,MAAM,yBAAyB,CAAC;AA6CjC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,qBAAqB,qUAwMjC,CAAC"}
1
+ {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../src/generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAEV,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,WAAW,EAEX,cAAc,EAEf,MAAM,yBAAyB,CAAC;AAgCjC;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAgBX;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,8DAczB,CAAC;AAgBF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,yBAAyB,yEAkDrC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,6FAe7B,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,wHAgBlC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,4BAA4B,qKA0BxC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,qBAAqB,qUA0NjC,CAAC"}