
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
@graphitation/ts-codegen
Advanced tools
This package generates Typescript definitions based on GraphQL Schema Definition Language.
This package generates Typescript definitions based on GraphQL Schema Definition Language.
document (DocumentNode): The GraphQL document consisting the schema definitions to generate TypeScript code from.options (GenerateTSOptions): An object containing various options for the code generation.Below is the list of all flags that can be passed to the code generator (see codegen.ts).
export interface GenerateTSOptions {
outputPath: string;
documentPath: string;
contextTypePath?: string | null;
contextTypeName?: string;
enumsImport?: string | null;
legacyCompat?: boolean;
useStringUnionsInsteadOfEnums?: boolean;
legacyNoModelsForObjects?: boolean;
modelScope?: string | null;
generateOnlyEnums?: boolean;
enumNamesToMigrate?: string[];
enumNamesToKeep?: string[];
contextSubTypeNameTemplate?: string;
contextSubTypePathTemplate?: string;
defaultContextSubTypePath?: string;
defaultContextSubTypeName?: string;
/**
* Enable the generation of the resolver map as the default export in the resolvers file.
*
* @see createResolversMap in packages/ts-codegen/src/resolvers.ts
*
* @example
* export default interface ResolversMap {
* readonly User?: User.Resolvers;
* readonly Post?: Post.Resolvers;
* readonly Query?: Query.Resolvers;
* }
* */
generateResolverMap?: boolean;
}
FAQs
This package generates Typescript definitions based on GraphQL Schema Definition Language.
The npm package @graphitation/ts-codegen receives a total of 89 weekly downloads. As such, @graphitation/ts-codegen popularity was classified as not popular.
We found that @graphitation/ts-codegen demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.