UNPKG

@graphql-codegen/flutter-freezed

Version:

GraphQL Code Generator plugin to generate Freezed models from your GraphQL schema

13 lines (12 loc) 905 B
import { TypeName } from '../config/pattern.cjs'; import { FlutterFreezedPluginConfig, NodeType } from '../config/plugin-config.cjs'; export declare class ClassBlock { static build(config: FlutterFreezedPluginConfig, node: NodeType): string; static buildDecorators: (config: FlutterFreezedPluginConfig, node: NodeType) => string; static buildFreezedDecorator: (config: FlutterFreezedPluginConfig, node: NodeType) => string; static decorateAsFreezed: (config: FlutterFreezedPluginConfig, node: NodeType) => string; static decorateAsUnfreezed: (config: FlutterFreezedPluginConfig, node: NodeType) => "@unfreezed\n" | "@freezed\n"; static buildHeader: (config: FlutterFreezedPluginConfig, typeName: TypeName, _className: string) => string; static buildBody: (config: FlutterFreezedPluginConfig, node: NodeType) => string; static buildFooter: (_className: string) => string; }