mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 08:09:08 -05:00
Fixing jsdoc example padding (denoland/deno_std#322)
Original: a0ff487a12
This commit is contained in:
parent
fd170692dd
commit
0ff0ba2b32
2 changed files with 21 additions and 20 deletions
23
fs/glob.ts
23
fs/glob.ts
|
@ -22,18 +22,19 @@ export interface GlobOptions {
|
||||||
* but can be used anywhere else.
|
* but can be used anywhere else.
|
||||||
* Examples:
|
* Examples:
|
||||||
*
|
*
|
||||||
* Looking for all the `ts` files:
|
* Looking for all the `ts` files:
|
||||||
* walkSync(".", {
|
* walkSync(".", {
|
||||||
* match: [glob("*.ts")]
|
* match: [glob("*.ts")]
|
||||||
* })
|
* })
|
||||||
*
|
*
|
||||||
* Looking for all the `.json` files in any subfolder:
|
* Looking for all the `.json` files in any subfolder:
|
||||||
* walkSync(".", {
|
* walkSync(".", {
|
||||||
* match: [glob(join("a", "**", "*.json"),flags: "g",
|
* match: [glob(join("a", "**", "*.json"),{
|
||||||
* extended: true,
|
* flags: "g",
|
||||||
* globstar: true
|
* extended: true,
|
||||||
* })]
|
* globstar: true
|
||||||
* })
|
* })]
|
||||||
|
* })
|
||||||
*
|
*
|
||||||
* @param glob - Glob pattern to be used
|
* @param glob - Glob pattern to be used
|
||||||
* @param options - Specific options for the glob pattern
|
* @param options - Specific options for the glob pattern
|
||||||
|
|
|
@ -21,15 +21,15 @@ export interface FillOption {
|
||||||
* is equal to the `strLen` parameter.
|
* is equal to the `strLen` parameter.
|
||||||
* Example:
|
* Example:
|
||||||
*
|
*
|
||||||
* pad("deno", 6, { char: "*", side: "left" }) // output : "**deno"
|
* pad("deno", 6, { char: "*", side: "left" }) // output : "**deno"
|
||||||
* pad("deno", 6, { char: "*", side: "right"}) // output : "deno**"
|
* pad("deno", 6, { char: "*", side: "right"}) // output : "deno**"
|
||||||
* pad("denosorusrex", 6 {
|
* pad("denosorusrex", 6 {
|
||||||
* char: "*",
|
* char: "*",
|
||||||
* side: "left",
|
* side: "left",
|
||||||
* strict: true,
|
* strict: true,
|
||||||
* strictSide: "right",
|
* strictSide: "right",
|
||||||
* strictChar: "..."
|
* strictChar: "..."
|
||||||
* }) // output : "den..."
|
* }) // output : "den..."
|
||||||
*
|
*
|
||||||
* @param input Input string
|
* @param input Input string
|
||||||
* @param strLen Output string lenght
|
* @param strLen Output string lenght
|
||||||
|
|
Loading…
Reference in a new issue