Module: JsRoutes::Types

Extended by:
T::Sig
Included in:
JsRoutes, Configuration, Instance, Middleware, Route
Defined in:
lib/js_routes/types.rb

Defined Under Namespace

Modules: RackApp

Constant Summary collapse

UntypedArray =
T.type_alias {T::Array[T.untyped]}
StringArray =
T.type_alias {T::Array[String]}
SymbolArray =
T.type_alias {T::Array[Symbol]}
StringHash =
T.type_alias { T::Hash[String, T.untyped] }
Options =
T.type_alias { T::Hash[Symbol, T.untyped] }
SpecNode =
T.type_alias { T.any(String, RouteSpec, NilClass) }
Literal =
T.type_alias { T.any(String, Symbol) }
JourneyRoute =
T.type_alias{ActionDispatch::Journey::Route}
RouteSpec =
T.type_alias {T.untyped}
Application =
T.type_alias do
  T.any(T::Class[Rails::Engine], Rails::Application)
end
ApplicationCaller =
T.type_alias do
  T.any(Application, T.proc.returns(Application))
end
BannerCaller =
T.type_alias do
  T.any(String, NilClass, T.proc.returns(T.any(String, NilClass)))
end
Clusivity =
T.type_alias { T.any(Regexp, T::Array[Regexp]) }
FileName =
T.type_alias { T.any(String, Pathname, NilClass) }
ConfigurationBlock =
T.type_alias do
  T.proc.params(arg0: JsRoutes::Configuration).void
end
Prefix =
T.type_alias do
  T.any(T.proc.returns(String), String, NilClass)
end