UNPKG

785 BTypeScriptView Raw
1import { PluginFunction } from '@graphql-codegen/plugin-helpers';
2export declare type TimePluginConfig = string | {
3 /**
4 * @description Customize the Moment format of the output time.
5 * @default YYYY-MM-DDTHH:mm:ssZ
6 *
7 * @exampleMarkdown
8 * ```yml
9 * generates:
10 * path/to/file.ts:
11 * plugins:
12 * - time:
13 * format: DD.MM.YY
14 * ```
15 */
16 format: string;
17 /**
18 * @description Customize the comment message
19 * @default Generated on
20 *
21 * @exampleMarkdown
22 * ```yml
23 * generates:
24 * path/to/file.ts:
25 * plugins:
26 * - time:
27 * message: "The file generated on: "
28 * ```
29 */
30 message: string;
31};
32export declare const plugin: PluginFunction<TimePluginConfig>;