Sha256: 6ddb0047af3eaa5e922fb62606ed4f93f9f90914c7d4693d2a3cc2d8af379a6c

Contents?: true

Size: 870 Bytes

Versions: 12

Compression:

Stored size: 870 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

12 entries across 12 versions & 1 rubygems

Version Path
mangadex-5.5.8 lib/mangadex/sorbet.rb
mangadex-5.5.6 lib/mangadex/sorbet.rb
mangadex-5.4.16 lib/mangadex/sorbet.rb
mangadex-5.4.11.3 lib/mangadex/sorbet.rb
mangadex-5.4.11.2 lib/mangadex/sorbet.rb
mangadex-5.4.11.1 lib/mangadex/sorbet.rb
mangadex-5.4.11 lib/mangadex/sorbet.rb
mangadex-5.4.9 lib/mangadex/sorbet.rb
mangadex-5.3.3.4 lib/mangadex/sorbet.rb
mangadex-5.3.3.3 lib/mangadex/sorbet.rb
mangadex-5.3.3.2 lib/mangadex/sorbet.rb
mangadex-5.3.3.1 lib/mangadex/sorbet.rb