Uses any for values of a Hash in .rbs files

This commit is contained in:
Muhammad Nawzad 2023-11-09 10:18:44 +03:00
parent bfdf6526ef
commit 5a0efd1b60
No known key found for this signature in database
GPG Key ID: B954B6AAE33940B2
2 changed files with 4 additions and 5 deletions

View File

@ -1,17 +1,16 @@
module Schemable
class Configuration
attr_accessor disable_factory_bot: untyped
attr_accessor orm: Symbol
attr_accessor timestamps: bool
attr_accessor float_as_string: bool
attr_accessor decimal_as_string: bool
attr_accessor disable_factory_bot: bool
attr_accessor custom_type_mappers: Hash[Symbol, Symbol | Object]
attr_accessor custom_type_mappers: Hash[Symbol, any]
def initialize: -> void
def add_custom_type_mapper: (Symbol, Hash[Symbol, Symbol | Object]) -> void
def add_custom_type_mapper: (Symbol, Hash[Symbol, any]) -> void
def type_mapper: (Symbol) -> Hash[Symbol, Symbol | Object]
def type_mapper: (Symbol) -> Hash[Symbol, any]
end
end

View File

@ -1,5 +1,5 @@
module Schemable
module Constants
TYPES_MAP: Hash[Symbol, Symbol | Object]
TYPES_MAP: Hash[Symbol, any]
end
end