Sha256: 9fb5da3699189d94a6b6ca64a2276aacecfbbe2c9a6b1fed804ea1676d7616ea

Contents?: true

Size: 869 Bytes

Versions: 6

Compression:

Stored size: 869 Bytes

Contents

# typed: false

# These are custom alias Sorbet types

module T
  module Api
    Text = T.type_alias { T.any(String, Symbol) }

    Arguments = T.type_alias do
      T.any(
        Text,
        T::Array[Text],
        Integer,
        T::Hash[Text, Text],
      )
    end
    MangaResponse = T.type_alias do
      T.any(
        Mangadex::Api::Response[Mangadex::Manga],
        Mangadex::Api::Response[T::Array[Mangadex::Manga]]
      )
    end
    ChapterResponse = T.type_alias do
      T.any(
        Mangadex::Api::Response[Mangadex::Chapter],
        Mangadex::Api::Response[T::Array[Mangadex::Chapter]]
      )
    end
    GenericResponse = T.type_alias do
      T.any(
        ::Hash,
        Mangadex::Api::Response,
      )
    end
    ContentRating = T.type_alias do
      T.any(
        String,
        ::Mangadex::ContentRating,
      )
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mangadex-5.3.2 lib/mangadex/sorbet.rb
mangadex-5.3.1.3 lib/mangadex/sorbet.rb
mangadex-5.3.1.2 lib/mangadex/sorbet.rb
mangadex-5.3.1.1 lib/mangadex/sorbet.rb
mangadex-5.3.1 lib/mangadex/sorbet.rb
mangadex-5.3.0 lib/mangadex/sorbet.rb