feat(ext/console): Add string abbreviation size option for "Deno.inspect" (#14384)

This commit is contained in:
Ben Heidemann 2022-04-25 12:59:15 +01:00 committed by GitHub
parent 6dcf3a447c
commit ddbfa1418c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 2 deletions

View file

@ -2491,6 +2491,8 @@ declare namespace Deno {
getters?: boolean;
/** Show an object's non-enumerable properties. Defaults to false. */
showHidden?: boolean;
/** The maximum length of a string before it is truncated with an ellipsis */
strAbbreviateSize?: number;
}
/** Converts the input into a string that has the same format as printed by