startup/bootstrap: provide type signature
This commit is contained in:
parent
e6f894fc20
commit
6ff1b35d99
28
Library/Homebrew/startup/bootstrap.rbi
Normal file
28
Library/Homebrew/startup/bootstrap.rbi
Normal file
@ -0,0 +1,28 @@
|
||||
# typed: strict
|
||||
|
||||
module Bootsnap
|
||||
sig {
|
||||
params(
|
||||
cache_dir: String,
|
||||
development_mode: T::Boolean,
|
||||
load_path_cache: T::Boolean,
|
||||
ignore_directories: T.nilable(T::Array[String]),
|
||||
readonly: T::Boolean,
|
||||
revalidation: T::Boolean,
|
||||
compile_cache_iseq: T::Boolean,
|
||||
compile_cache_yaml: T::Boolean,
|
||||
compile_cache_json: T::Boolean,
|
||||
).void
|
||||
}
|
||||
def self.setup(
|
||||
cache_dir:,
|
||||
development_mode: true,
|
||||
load_path_cache: true,
|
||||
ignore_directories: nil,
|
||||
readonly: false,
|
||||
revalidation: false,
|
||||
compile_cache_iseq: true,
|
||||
compile_cache_yaml: true,
|
||||
compile_cache_json: true
|
||||
); end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user