1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 09:10:40 -05:00

Fixing jsdoc example padding (#322)

This commit is contained in:
Vincent LE GOFF 2019-04-04 11:58:16 +02:00 committed by Ryan Dahl
parent a1ceaa6ef7
commit a0ff487a12
2 changed files with 21 additions and 20 deletions

View file

@ -22,18 +22,19 @@ export interface GlobOptions {
* but can be used anywhere else.
* Examples:
*
* Looking for all the `ts` files:
* walkSync(".", {
* match: [glob("*.ts")]
* })
* Looking for all the `ts` files:
* walkSync(".", {
* match: [glob("*.ts")]
* })
*
* Looking for all the `.json` files in any subfolder:
* walkSync(".", {
* match: [glob(join("a", "**", "*.json"),flags: "g",
* extended: true,
* globstar: true
* })]
* })
* Looking for all the `.json` files in any subfolder:
* walkSync(".", {
* match: [glob(join("a", "**", "*.json"),{
* flags: "g",
* extended: true,
* globstar: true
* })]
* })
*
* @param glob - Glob pattern to be used
* @param options - Specific options for the glob pattern

View file

@ -21,15 +21,15 @@ export interface FillOption {
* is equal to the `strLen` parameter.
* Example:
*
* pad("deno", 6, { char: "*", side: "left" }) // output : "**deno"
* pad("deno", 6, { char: "*", side: "right"}) // output : "deno**"
* pad("denosorusrex", 6 {
* char: "*",
* side: "left",
* strict: true,
* strictSide: "right",
* strictChar: "..."
* }) // output : "den..."
* pad("deno", 6, { char: "*", side: "left" }) // output : "**deno"
* pad("deno", 6, { char: "*", side: "right"}) // output : "deno**"
* pad("denosorusrex", 6 {
* char: "*",
* side: "left",
* strict: true,
* strictSide: "right",
* strictChar: "..."
* }) // output : "den..."
*
* @param input Input string
* @param strLen Output string lenght