Add initial RBS support with Steep and TypeProf

This commit is contained in:
Wilson Silva
2023-01-22 17:42:59 +07:00
parent 59e058d511
commit 8f6a7547f5
19 changed files with 290 additions and 1 deletions

25
sig/nostr/filter.rbs Normal file
View File

@@ -0,0 +1,25 @@
module Nostr
class Filter
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 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 ==: (Filter other) -> bool
end
end