Skip to content

Commit

Permalink
Add annotation for after for minitest-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Jan 8, 2025
1 parent 12762cc commit dcd6d74
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@
},
"minitest": {
},
"minitest-hooks": {
"dependencies": [
"minitest"
],
"requires": [
"minitest/hooks"
]
},
"mocha": {
"requires": [
"mocha/api"
Expand Down
6 changes: 6 additions & 0 deletions rbi/annotations/minitest-hooks.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# typed: true

class Minitest::HooksSpec
sig { params(arg: Symbol, block: T.proc.bind(T.attached_class).void).void }
def self.after(arg, &block); end
end

0 comments on commit dcd6d74

Please sign in to comment.