templates

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *template.Template

New creates a new template with all the template dependencies set up.

Types

type FormatTypeFunc added in v0.3.12

type FormatTypeFunc struct{}

FormatTypeFunc is an implementation of generator.FormatTypeFuncs interface to format GraphQL type into Typescript.

func (*FormatTypeFunc) FormatKindEnum added in v0.3.12

func (f *FormatTypeFunc) FormatKindEnum(representation string, refName string) string

func (*FormatTypeFunc) FormatKindInputObject added in v0.3.12

func (f *FormatTypeFunc) FormatKindInputObject(representation string, refName string) string

func (*FormatTypeFunc) FormatKindList added in v0.3.12

func (f *FormatTypeFunc) FormatKindList(representation string) string

func (*FormatTypeFunc) FormatKindObject added in v0.3.12

func (f *FormatTypeFunc) FormatKindObject(representation string, refName string) string

func (*FormatTypeFunc) FormatKindScalarBoolean added in v0.3.12

func (f *FormatTypeFunc) FormatKindScalarBoolean(representation string) string

func (*FormatTypeFunc) FormatKindScalarDefault added in v0.3.12

func (f *FormatTypeFunc) FormatKindScalarDefault(representation string, refName string, input bool) string

func (*FormatTypeFunc) FormatKindScalarFloat added in v0.3.12

func (f *FormatTypeFunc) FormatKindScalarFloat(representation string) string

func (*FormatTypeFunc) FormatKindScalarInt added in v0.3.12

func (f *FormatTypeFunc) FormatKindScalarInt(representation string) string

func (*FormatTypeFunc) FormatKindScalarString added in v0.3.12

func (f *FormatTypeFunc) FormatKindScalarString(representation string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL