httpx/sig/registry.rbs
HoneyryderChuck 8f8febc10e sig fixes
2022-08-08 22:19:20 +01:00

14 lines
319 B
Plaintext

module HTTPX::Registry[unchecked out T, unchecked out V]
class Error < HTTPX::Error
end
# type registrable = Symbol | String | Class
def self.registry: [T, V] (T) -> Class
| [T, V] () -> Hash[T, V]
def self.register: [T, V] (T tag, V handler) -> void
def registry: (?T tag) -> V
end