Skip to content

Commit d90c181

Browse files
authored
chore: change OptionType to alias for usage as string (#377)
To be backwards compatible using this repo as a library, use a string alias. This allows using the 'type' as a `string` or the new enum. Since enum validation is quite weak in Go, this is baiscally functionally equvialent.
1 parent 8804c44 commit d90c181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provider/formtype.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
//
1414
// The value have to be string literals, as type constraint keywords are not
1515
// supported in providers.
16-
type OptionType string
16+
type OptionType = string
1717

1818
const (
1919
OptionTypeString OptionType = "string"

0 commit comments

Comments
 (0)