Documentation ¶
Index ¶
- func New() *template.Template
- type FormatTypeFunc
- func (f *FormatTypeFunc) FormatKindEnum(representation string, refName string) string
- func (f *FormatTypeFunc) FormatKindInputObject(representation string, refName string, input bool) string
- func (f *FormatTypeFunc) FormatKindList(representation string) string
- func (f *FormatTypeFunc) FormatKindObject(representation string, refName string, input bool) string
- func (f *FormatTypeFunc) FormatKindScalarBoolean(representation string) string
- func (f *FormatTypeFunc) FormatKindScalarDefault(representation string, refName string, input bool) string
- func (f *FormatTypeFunc) FormatKindScalarFloat(representation string) string
- func (f *FormatTypeFunc) FormatKindScalarInt(representation string) string
- func (f *FormatTypeFunc) FormatKindScalarString(representation string) string
- func (f *FormatTypeFunc) WithScope(scope string) generator.FormatTypeFuncs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FormatTypeFunc ¶
type FormatTypeFunc struct {
// contains filtered or unexported fields
}
FormatTypeFunc is an implementation of generator.FormatTypeFuncs interface to format GraphQL type into Typescript.
func (*FormatTypeFunc) FormatKindEnum ¶
func (f *FormatTypeFunc) FormatKindEnum(representation string, refName string) string
func (*FormatTypeFunc) FormatKindInputObject ¶
func (f *FormatTypeFunc) FormatKindInputObject(representation string, refName string, input bool) string
func (*FormatTypeFunc) FormatKindList ¶
func (f *FormatTypeFunc) FormatKindList(representation string) string
func (*FormatTypeFunc) FormatKindObject ¶
func (f *FormatTypeFunc) FormatKindObject(representation string, refName string, input bool) string
func (*FormatTypeFunc) FormatKindScalarBoolean ¶
func (f *FormatTypeFunc) FormatKindScalarBoolean(representation string) string
func (*FormatTypeFunc) FormatKindScalarDefault ¶
func (f *FormatTypeFunc) FormatKindScalarDefault(representation string, refName string, input bool) string
func (*FormatTypeFunc) FormatKindScalarFloat ¶
func (f *FormatTypeFunc) FormatKindScalarFloat(representation string) string
func (*FormatTypeFunc) FormatKindScalarInt ¶
func (f *FormatTypeFunc) FormatKindScalarInt(representation string) string
func (*FormatTypeFunc) FormatKindScalarString ¶
func (f *FormatTypeFunc) FormatKindScalarString(representation string) string
func (*FormatTypeFunc) WithScope ¶ added in v0.2.0
func (f *FormatTypeFunc) WithScope(scope string) generator.FormatTypeFuncs
Click to show internal directories.
Click to hide internal directories.