Versions in this module Expand all Collapse all v1 v1.5.2 Jun 10, 2025 Changes in this version + var A = NewAny() + var B = NewBoolean() + var N = NewNumber() + var S = NewString() + func Arity(x Type) int + func Compare(a, b Type) int + func Contains(a, b Type) bool + func Nil(a Type) bool + func Sprint(x Type) string + func Void(x Type) bool + type Any = v1.Any + func NewAny(of ...Type) Any + type Array = v1.Array + func NewArray(static []Type, dynamic Type) *Array + type Boolean = v1.Boolean + func NewBoolean() Boolean + type DynamicProperty = v1.DynamicProperty + func NewDynamicProperty(key, value Type) *DynamicProperty + type FuncArgs = v1.FuncArgs + type Function = v1.Function + func NewFunction(args []Type, result Type) *Function + func NewVariadicFunction(args []Type, varargs Type, result Type) *Function + type NamedType = v1.NamedType + func Named(name string, t Type) *NamedType + type Null = v1.Null + func NewNull() Null + type Number = v1.Number + func NewNumber() Number + type Object = v1.Object + func NewObject(static []*StaticProperty, dynamic *DynamicProperty) *Object + type Set = v1.Set + func NewSet(of Type) *Set + type StaticProperty = v1.StaticProperty + func NewStaticProperty(key any, value Type) *StaticProperty + type String = v1.String + func NewString() String + type Type = v1.Type + func Args(x ...Type) []Type + func Keys(a Type) Type + func Or(a, b Type) Type + func Select(a Type, x any) Type + func TypeOf(x any) Type + func Unmarshal(bs []byte) (result Type, err error) + func Values(a Type) Type