node_modules.apollo-codegen-swift.lib.language.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-client-maven-plugin Show documentation
Show all versions of apollo-client-maven-plugin Show documentation
Maven plugin for generating graphql clients
import CodeGenerator from 'apollo-codegen-core/lib/utilities/CodeGenerator';
export interface Class {
className: string;
modifiers: string[];
superClass?: string;
adoptedProtocols?: string[];
}
export interface Struct {
structName: string;
adoptedProtocols?: string[];
description?: string;
}
export interface Protocol {
protocolName: string;
adoptedProtocols?: string[];
}
export interface Property {
propertyName: string;
typeName: string;
isOptional?: boolean;
description?: string;
}
export declare function escapedString(string: string): string;
export declare function escapeIdentifierIfNeeded(identifier: string): string;
export declare class SwiftGenerator extends CodeGenerator {
constructor(context: Context);
multilineString(string: string): void;
comment(comment?: string): void;
deprecationAttributes(isDeprecated: boolean | undefined, deprecationReason: string | undefined): void;
namespaceDeclaration(namespace: string | undefined, closure: Function): void;
namespaceExtensionDeclaration(namespace: string | undefined, closure: Function): void;
classDeclaration({ className, modifiers, superClass, adoptedProtocols }: Class, closure: Function): void;
structDeclaration({ structName, description, adoptedProtocols }: Struct, closure: Function): void;
propertyDeclaration({ propertyName, typeName, description }: Property): void;
propertyDeclarations(properties: Property[]): void;
protocolDeclaration({ protocolName, adoptedProtocols }: Protocol, closure: Function): void;
protocolPropertyDeclaration({ propertyName, typeName }: Property): void;
protocolPropertyDeclarations(properties: Property[]): void;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy