sorbet/files.yaml: set utils/tty.rb to true
This commit is contained in:
parent
3a23d07356
commit
89605d2c6f
@ -453,7 +453,6 @@ false:
|
||||
- ./utils/github.rb
|
||||
- ./utils/notability.rb
|
||||
- ./utils/popen.rb
|
||||
- ./utils/tty.rb
|
||||
- ./utils/user.rb
|
||||
|
||||
false:
|
||||
@ -889,6 +888,7 @@ true:
|
||||
- ./tap_constants.rb
|
||||
- ./test/support/helper/fixtures.rb
|
||||
- ./test/support/lib/config.rb
|
||||
- ./utils/tty.rb
|
||||
- ./version/null.rb
|
||||
|
||||
strict:
|
||||
|
||||
36
Library/Homebrew/sorbet/rbi/utils/tty.rbi
Normal file
36
Library/Homebrew/sorbet/rbi/utils/tty.rbi
Normal file
@ -0,0 +1,36 @@
|
||||
# typed: strict
|
||||
|
||||
module Tty
|
||||
include Kernel
|
||||
|
||||
sig{ params(string: String).returns(String) }
|
||||
def strip_ansi(string)
|
||||
end
|
||||
|
||||
sig{ returns(Integer) }
|
||||
def width()
|
||||
end
|
||||
|
||||
sig{ params(string: String).returns(T.nilable(String)) }
|
||||
def truncate(string)
|
||||
end
|
||||
|
||||
def append_to_escape_sequence(code)
|
||||
end
|
||||
|
||||
sig{ returns(String) }
|
||||
def current_escape_sequence()
|
||||
end
|
||||
|
||||
sig{ void }
|
||||
def reset_escape_sequence!()
|
||||
end
|
||||
|
||||
sig{ returns(String) }
|
||||
def to_s
|
||||
end
|
||||
|
||||
sig { returns(T::Boolean) }
|
||||
def color?
|
||||
end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user