Skip to content

Commit

Permalink
tweak types
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddenton committed Feb 5, 2017
1 parent 153019a commit 8d273a7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/src/main/scala/io/fintrospect/parameters/FormField.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ abstract class MultiOptionalFormFile(name: String, description: String = null) e

object FormField {

type Field[A[_, _, _ <: Binding], B] = A[Form, B, FormFieldBinding]
type File[A[_, _, _ <: Binding], B] = A[Form, B, FormFileBinding]
type Mandatory[T] = MandatoryParameter[Form, T, FormFieldBinding]

type Mandatory[T] = Field[MandatoryParameter, T]
type MandatorySeq[T] = Field[MandatoryParameter, Seq[T]]
type Optional[T] = Field[OptionalParameter, T]
type OptionalSeq[T] = Field[OptionalParameter, Seq[T]]
type MandatorySeq[T] = MandatoryParameter[Form, Seq[T], FormFieldBinding]

type Optional[T] = OptionalParameter[Form, T, FormFieldBinding]

type OptionalSeq[T] = OptionalParameter[Form, Seq[T], FormFieldBinding]

type MandatoryFile = MandatoryParameter[Form, MultiPartFile, FormFileBinding]

Expand Down

0 comments on commit 8d273a7

Please sign in to comment.