Skip to content

GlobOptions

[<Interface>]
type GlobOptions<'T> =
    abstract member cwd: U2<string,URL> option with get, set
    abstract member exclude: U2<string array,('T -> bool)> option with get, set
    abstract member withFileTypes: bool option with get, set
    static member Create (?cwd: U2<string,URL>, ?withFileTypes: bool, ?exclude: U2<string array,('T -> bool)>) : GlobOptions<'T>
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Properties

abstract member cwd: U2<string,URL> option with get, set

Current working directory.

abstract member exclude: U2<string array,('T -> bool)> option with get, set

Function to filter out files/directories or a list of glob patterns to be excluded. If a function is provided, return true to exclude the item, false to include it. If a string array is provided, each string should be a glob pattern that specifies paths to exclude. Note: Negation patterns (e.g., '!foo.js') are not supported.

abstract member withFileTypes: bool option with get, set

true if the glob should return paths as Dirents, false otherwise.

@since v22.2.0

Methods

static member Create (?cwd: U2<string,URL>, ?withFileTypes: bool, ?exclude: U2<string array,('T -> bool)>) : GlobOptions<'T>