lib/tapioca/dsl/compilers/config.rb in tapioca-0.7.1 vs lib/tapioca/dsl/compilers/config.rb in tapioca-0.7.2
- old
+ new
@@ -47,11 +47,11 @@
class Config < Compiler
extend T::Sig
CONFIG_OPTIONS_SUFFIX = "ConfigOptions"
- ConstantType = type_member(fixed: Module)
+ ConstantType = type_member { { fixed: Module } }
sig { override.void }
def decorate
# The constant we are given is the specialized config options type
option_class_name = constant.name
@@ -75,10 +75,10 @@
#
# We declare it as a fixed member of `T.untyped` so that if anyone
# enumerates the entries, we don't make any assumptions about their
# types.
mod.create_extend("T::Generic")
- mod.create_type_member("Elem", value: "type_member(fixed: T.untyped)")
+ mod.create_type_variable("Elem", type: "type_member", fixed: "T.untyped")
method_names.each do |method_name|
# Create getter method
mod.create_method(
method_name.to_s,