Module: ActiveRecordMaterializedTypes

Defined in:
lib/activerecord_materialized_types.rb

Overview

typed: strict frozen_string_literal: true

Constant Summary collapse

DebounceInterval =
T.type_alias { T.any(Integer, Float, ::ActiveSupport::Duration) }
StalenessDuration =
T.type_alias { T.any(Integer, ::ActiveSupport::Duration) }
SourceDefinition =
T.type_alias do
  T.any(
    ::ActiveRecord::Relation,
    Proc,
    T.nilable(T.proc.returns(::ActiveRecord::Relation))
  )
end
RefreshMode =
T.type_alias { Symbol }
RefreshCallbackName =
T.type_alias { T.any(Symbol, Proc) }
Connection =
T.type_alias { ::ActiveRecord::ConnectionAdapters::AbstractAdapter }
Timestamp =
T.type_alias { T.any(::Time, ::ActiveSupport::TimeWithZone) }