class ActiveSupport::HashWithIndifferentAccess

def [](key)

Experimental RBS support (using type sampling data from the type_fusion project).

def []: ((Symbol | String) key) -> String

This signature was generated using 4 samples from 1 application.

counters[:zoo] # => nil
counters[:foo] # => 1
counters['foo'] # => 1

counters[:foo] = 1
counters = ActiveSupport::HashWithIndifferentAccess.new

either a string or a symbol:
Same as Hash#[] where the key passed as argument can be
def [](key)
  super(convert_key(key))
end