All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.apollo-codegen-scala.lib.language.d.ts Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
import CodeGenerator from "apollo-codegen-core/lib/utilities/CodeGenerator";
import { LegacyCompilerContext } from "apollo-codegen-core/lib/compiler/legacyIR";
export interface Property {
    propertyName: string;
    typeName: string;
    caseClassName?: string;
    isOptional?: boolean;
    isList?: boolean;
    description?: string;
}
export declare function comment(generator: CodeGenerator, comment: string): void;
export declare function packageDeclaration(generator: CodeGenerator, pkg: string): void;
export declare function objectDeclaration(generator: CodeGenerator, { objectName, superclass }: {
    objectName: string;
    superclass?: string;
}, closure?: () => void): void;
export declare function caseClassDeclaration(generator: CodeGenerator, { caseClassName, description, superclass, params }: {
    caseClassName: string;
    description?: string;
    superclass?: string;
    params?: {
        name: string;
        type: string;
        defaultValue?: string;
    }[];
}, closure?: () => void): void;
export declare function propertyDeclaration(generator: CodeGenerator, { propertyName, typeName, description }: {
    propertyName: string;
    typeName: string;
    description: string;
}, closure?: () => void): void;
export declare function propertyDeclarations(generator: CodeGenerator, declarations: {
    propertyName: string;
    typeName: string;
    description: string;
}[]): void;
export declare function escapeIdentifierIfNeeded(identifier: string): string;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy