We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a2a2fc commit eeccbcdCopy full SHA for eeccbcd
packages/angular_devkit/schematics/src/utility/update-buffer.ts
@@ -52,7 +52,7 @@ export class Chunk {
52
(this._right ? this._right.length : 0)
53
);
54
}
55
- toString(encoding = 'utf-8') {
+ toString(encoding: BufferEncoding = 'utf-8') {
56
return (
57
(this._left ? this._left.toString(encoding) : '') +
58
(this._content ? this._content.toString(encoding) : '') +
@@ -279,7 +279,7 @@ export class UpdateBuffer extends UpdateBufferBase {
279
return this._originalContent;
280
281
282
- toString(encoding = 'utf-8'): string {
+ toString(encoding: BufferEncoding = 'utf-8'): string {
283
return this._linkedList.reduce((acc, chunk) => acc + chunk.toString(encoding), '');
284
285
generate(): Buffer {
0 commit comments