mirror of
https://github.com/ditkrg/schemable.git
synced 2026-01-22 22:26:41 +00:00
Uses any for values of a Hash in .rbs files
This commit is contained in:
parent
bfdf6526ef
commit
5a0efd1b60
@ -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
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
module Schemable
|
||||
module Constants
|
||||
TYPES_MAP: Hash[Symbol, Symbol | Object]
|
||||
TYPES_MAP: Hash[Symbol, any]
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user