1 | import { GraphQLSchema } from 'graphql';
|
2 | import { Request, Result } from '../Interfaces';
|
3 | import { Transform } from '../transforms/transforms';
|
4 | export declare type RenameOptions = {
|
5 | renameBuiltins: boolean;
|
6 | renameScalars: boolean;
|
7 | };
|
8 | export default class RenameTypes implements Transform {
|
9 | private renamer;
|
10 | private reverseMap;
|
11 | private renameBuiltins;
|
12 | private renameScalars;
|
13 | constructor(renamer: (name: string) => string | undefined, options?: RenameOptions);
|
14 | transformSchema(originalSchema: GraphQLSchema): GraphQLSchema;
|
15 | transformRequest(originalRequest: Request): Request;
|
16 | transformResult(result: Result): Result;
|
17 | private renameTypes;
|
18 | }
|