code-block-writer
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -0,19 +1,20 @@ | ||
declare class CodeBlockWriter { | ||
private _currentIndentation; | ||
private _text; | ||
private _numberSpaces; | ||
private _lastWasNewLine; | ||
constructor(opts?: { newLine: string }); | ||
block(block: () => void): CodeBlockWriter; | ||
getLength(): number; | ||
writeLine(str: string): CodeBlockWriter; | ||
newLineIfLastCharNotNewLine(): CodeBlockWriter; | ||
newLine(): CodeBlockWriter; | ||
spaceIfLastNotSpace(): CodeBlockWriter; | ||
write(str: string): CodeBlockWriter; | ||
toString(): string; | ||
private _getCurrentIndentationNumberSpaces(); | ||
} | ||
declare module "code-block-writer" { | ||
class CodeBlockWriter { | ||
private _currentIndentation; | ||
private _text; | ||
private _numberSpaces; | ||
private _lastWasNewLine; | ||
constructor(opts?: { newLine: string }); | ||
block(block: () => void): CodeBlockWriter; | ||
getLength(): number; | ||
writeLine(str: string): CodeBlockWriter; | ||
newLineIfLastCharNotNewLine(): CodeBlockWriter; | ||
newLine(): CodeBlockWriter; | ||
spaceIfLastNotSpace(): CodeBlockWriter; | ||
write(str: string): CodeBlockWriter; | ||
toString(): string; | ||
private _getCurrentIndentationNumberSpaces(); | ||
} | ||
export default CodeBlockWriter; | ||
export = CodeBlockWriter; | ||
} |
{ | ||
"name": "code-block-writer", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "A simple code writer that assists with formatting and visualizing blocks of code.", | ||
@@ -5,0 +5,0 @@ "main": "dist/code-block-writer.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128692