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

24
sig/nostr/event.rbs Normal file
View File

@@ -0,0 +1,24 @@
module Nostr
class Event < EventFragment
attr_reader id: String
attr_reader sig: String
def initialize: (id: String, sig: String,
created_at: Integer,
kind: Integer,
tags: Array[String],
content: String,
) -> void
def to_h: -> {
id: String,
pubkey: String,
created_at: Integer,
kind: Integer,
tags: Array[String],
content: String,
sig: String
}
def ==: (Event other) -> bool
end
end