From 2c44ae4ee89008999c9d084cceb4b97a716f7737 Mon Sep 17 00:00:00 2001 From: Wilson Silva Date: Sat, 18 Nov 2023 17:22:20 +0700 Subject: [PATCH] Fix the RBS types of Nostr::Filter e, p and to_f --- sig/nostr/filter.rbs | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/sig/nostr/filter.rbs b/sig/nostr/filter.rbs index 78a75fd..41f3204 100644 --- a/sig/nostr/filter.rbs +++ b/sig/nostr/filter.rbs @@ -3,23 +3,14 @@ module Nostr attr_reader ids: Array[String] attr_reader authors: Array[String] attr_reader kinds: Array[Integer] - attr_reader e: String - attr_reader p: String + attr_reader e: Array[String] + attr_reader p: Array[String] attr_reader since: Integer attr_reader until: Integer attr_reader limit: Integer def initialize: (**untyped) -> void - def to_h: -> { - ids: Array[String], - authors: Array[String], - kinds: Array[Integer], - e: String, - p: String, - since: Integer, - until: Integer, - limit: Integer - } + def to_h: -> Hash[::Symbol, (::Array[::String] | ::Array[::Integer] | ::Integer)] def ==: (Filter other) -> bool end end