add typed/file/glob (#440)
* add typed/file/glob * [typed/file/glob] remove unsafe-provide
This commit is contained in:
parent
2bb0698388
commit
b9b3e1a9b9
16
typed-racket-more/typed/file/glob.rkt
Normal file
16
typed-racket-more/typed/file/glob.rkt
Normal file
|
@ -0,0 +1,16 @@
|
|||
#lang typed/racket/base
|
||||
|
||||
(require typed/racket/unsafe)
|
||||
|
||||
(define-type Glob (U Path-String (Sequenceof Path-String)))
|
||||
|
||||
(unsafe-require/typed file/glob
|
||||
[glob (->* [Glob] [#:capture-dotfiles? Boolean] (Listof Path-String))]
|
||||
[in-glob (->* [Glob] [#:capture-dotfiles? Boolean] (Sequenceof Path-String))]
|
||||
[glob-match? (->* [Glob Path-String] [#:capture-dotfiles? Boolean] Boolean)]
|
||||
[glob-capture-dotfiles? (Parameterof Boolean)])
|
||||
|
||||
(provide glob
|
||||
in-glob
|
||||
glob-match?
|
||||
glob-capture-dotfiles?)
|
Loading…
Reference in New Issue
Block a user