diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2020-04-28 17:26:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 23:26:31 +0200 |
commit | 6fd754fba06ab3e3c4447fe118e780aa5040a419 (patch) | |
tree | 89a427b9c68e394e548dc5e027737a6c7ae37cb2 /std/path | |
parent | 1b6181e434422d3fe5aa49f59f1e7adc4ec4ce8f (diff) |
Move the docs like `@param [obj.prop]` to the interface. (#4974)
Diffstat (limited to 'std/path')
-rw-r--r-- | std/path/globrex.ts | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/std/path/globrex.ts b/std/path/globrex.ts index 868df797a..3fc69dd6c 100644 --- a/std/path/globrex.ts +++ b/std/path/globrex.ts @@ -12,18 +12,23 @@ const GLOBSTAR_SEGMENT = `((?:[^${SEP_ESC}/]*(?:${SEP_ESC}|\/|$))*)`; const WILDCARD_SEGMENT = `(?:[^${SEP_ESC}/]*)`; export interface GlobrexOptions { - // Allow ExtGlob features + /** Allow ExtGlob features. + * @default false */ extended?: boolean; - // When globstar is true, '/foo/**' is equivelant - // to '/foo/*' when globstar is false. - // Having globstar set to true is the same usage as - // using wildcards in bash + /** Support globstar. + * @remarks When globstar is `true`, '/foo/**' is equivelant + * to '/foo/*' when globstar is `false`. + * Having globstar set to `true` is the same usage as + * using wildcards in bash. + * @default false */ globstar?: boolean; - // be laissez faire about mutiple slashes + /** Be laissez-faire about mutiple slashes. + * @default true */ strict?: boolean; - // Parse as filepath for extra path related features + /** Parse as filepath for extra path related features. + * @default false */ filepath?: boolean; - // Flag to use in the generated RegExp + /** Flag to use in the generated RegExp. */ flags?: string; } @@ -40,11 +45,6 @@ export interface GlobrexResult { * Convert any glob pattern to a JavaScript Regexp object * @param glob Glob pattern to convert * @param opts Configuration object - * @param [opts.extended=false] Support advanced ext globbing - * @param [opts.globstar=false] Support globstar - * @param [opts.strict=true] be laissez faire about mutiple slashes - * @param [opts.filepath=""] Parse as filepath for extra path related features - * @param [opts.flags=""] RegExp globs * @returns Converted object with string, segments and RegExp object */ export function globrex( |