Skip to content

Commit

Permalink
Revert unncessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
eddeee888 committed Nov 11, 2024
1 parent c48ba7b commit 20ce1a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import { handleGraphQLEnumType } from './handleGraphQLEnumType';
import { visitNamedType } from './visitNamedType';
import type { GenerateResolverFilesContext } from './types';

export const generateResolverFiles = async (
export const generateResolverFiles = (
ctx: GenerateResolverFilesContext
): Promise<void> => {
): void => {
// Query
Object.values(
ctx.config.parsedGraphQLSchemaMeta.userDefinedSchemaTypeMap.query
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const postProcessFiles = ({
sourceFile: SourceFile;
resolverFile: ResolverFile;
}[] = [];

Object.entries(result.files).forEach(([filePath, file]) => {
if (file.__filetype === 'file') {
return;
Expand Down Expand Up @@ -56,7 +55,7 @@ export const postProcessFiles = ({
}
});

for (const { sourceFile, resolverFile } of sourceFilesToProcess) {
sourceFilesToProcess.forEach(({ sourceFile, resolverFile }) => {
const normalizedRelativePath = path.posix.relative(
cwd(),
sourceFile.getFilePath()
Expand Down Expand Up @@ -95,7 +94,7 @@ export const postProcessFiles = ({
...resolverFile,
content: sourceFile.getText(),
};
}
});
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import * as path from 'path';
import {
type SourceFile,
type Identifier,
type TypeAliasDeclaration,
type InterfaceDeclaration,
type Project,
type TypeAliasDeclaration,
Node,
SyntaxKind,
} from 'ts-morph';
Expand Down

0 comments on commit 20ce1a9

Please sign in to comment.