lib/eml/uk/parameters/card/activation.rb in eml-2.1.8 vs lib/eml/uk/parameters/card/activation.rb in eml-2.2.0

- old
+ new

@@ -1,16 +1,16 @@ -# typed: true +# typed: strict # frozen_string_literal: true module EML module UK class Parameters module Card class Activation < ::EML::UK::Parameters - REQUIRED_CONFIG = %i[program].freeze - OPTIONAL_CONFIG = %i[search_parameter].freeze + REQUIRED_CONFIG = T.let(%i[program].freeze, T::Array[Symbol]) + OPTIONAL_CONFIG = T.let(%i[search_parameter].freeze, T::Array[Symbol]) - sig { params(program: String).returns(String) } + sig { returns(T.nilable(String)) } attr_accessor :program sig { params(search_parameter: String).returns(String) } def search_parameter=(search_parameter) validate_search_parameter(search_parameter)