Add initial RBS support with Steep and TypeProf
This commit is contained in:
24
sig/nostr/event.rbs
Normal file
24
sig/nostr/event.rbs
Normal 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
|
||||
Reference in New Issue
Block a user