mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
fix: rename RelayApplyFragmentArgumentTransform to ApplyFragmentArgumentTransform (https://github.com/facebook/relay/commit/536f7815de68a0b43f11b65a16c32d3a2a42b8c7#diff-99f0c15aa080233f3d3654b4e604c257). (#39959)
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
|
||||
import * as InlineFragmentsTransform from 'relay-compiler/lib/transforms/InlineFragmentsTransform';
|
||||
import * as SkipRedundantNodesTransform from 'relay-compiler/lib/transforms/SkipRedundantNodesTransform';
|
||||
import * as RelayApplyFragmentArgumentTransform from 'relay-compiler/lib/transforms/RelayApplyFragmentArgumentTransform';
|
||||
import * as ApplyFragmentArgumentTransform from 'relay-compiler/lib/transforms/ApplyFragmentArgumentTransform';
|
||||
import * as FlattenTransform from 'relay-compiler/lib/transforms/FlattenTransform';
|
||||
import * as ConnectionFieldTransform from 'relay-compiler/lib/transforms/ConnectionFieldTransform';
|
||||
import { getLanguagePlugin } from 'relay-compiler/lib/bin/RelayCompilerMain';
|
||||
@@ -29,7 +29,7 @@ const relayDocuments = RelayParser.transform(adjustedSchema, documentAsts);
|
||||
const queryCompilerContext = new GraphQLCompilerContext(adjustedSchema)
|
||||
.addAll(relayDocuments)
|
||||
.applyTransforms([
|
||||
RelayApplyFragmentArgumentTransform.transform,
|
||||
ApplyFragmentArgumentTransform.transform,
|
||||
InlineFragmentsTransform.transform,
|
||||
FlattenTransform.transformWithOptions({ flattenAbstractTypes: false }),
|
||||
SkipRedundantNodesTransform.transform,
|
||||
@@ -47,7 +47,7 @@ getLanguagePlugin(() => ({
|
||||
inputExtensions: ['foo'],
|
||||
outputExtension: 'bar',
|
||||
typeGenerator: {
|
||||
transforms: [RelayApplyFragmentArgumentTransform.transform],
|
||||
transforms: [ApplyFragmentArgumentTransform.transform],
|
||||
generate: (schema, node, options) => {
|
||||
visit(node, {
|
||||
Fragment(fragment) {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"lib/transforms/ConnectionFieldTransform.d.ts",
|
||||
"lib/transforms/FlattenTransform.d.ts",
|
||||
"lib/transforms/InlineFragmentsTransform.d.ts",
|
||||
"lib/transforms/RelayApplyFragmentArgumentTransform.d.ts",
|
||||
"lib/transforms/ApplyFragmentArgumentTransform.d.ts",
|
||||
"lib/transforms/SkipRedundantNodesTransform.d.ts",
|
||||
"lib/transforms/MaskTransform.d.ts",
|
||||
"lib/transforms/MatchTransform.d.ts",
|
||||
|
||||
Reference in New Issue
Block a user