mirror of
https://github.com/ditkrg/schemable.git
synced 2026-01-23 06:36:40 +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
|
module Schemable
|
||||||
class Configuration
|
class Configuration
|
||||||
attr_accessor disable_factory_bot: untyped
|
|
||||||
attr_accessor orm: Symbol
|
attr_accessor orm: Symbol
|
||||||
attr_accessor timestamps: bool
|
attr_accessor timestamps: bool
|
||||||
attr_accessor float_as_string: bool
|
attr_accessor float_as_string: bool
|
||||||
attr_accessor decimal_as_string: bool
|
attr_accessor decimal_as_string: bool
|
||||||
attr_accessor disable_factory_bot: 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 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
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
module Schemable
|
module Schemable
|
||||||
module Constants
|
module Constants
|
||||||
TYPES_MAP: Hash[Symbol, Symbol | Object]
|
TYPES_MAP: Hash[Symbol, any]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user