Skip to content

Commit c31bfda

Browse files
refactor(compiler): add ts-ignore for typescript upgrade
This is a quick ts-ignore add to suppress something for later.
1 parent a7ba2f5 commit c31bfda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ export class NodeJSReadonlyFileSystem extends NodeJSPathManipulation implements
9494
return fs.readFileSync(path, 'utf8');
9595
}
9696
readFileBuffer(path: AbsoluteFsPath): Uint8Array {
97+
// TODO: go/ts59upgrade - Remove the suppression after TS 5.9.2 upgrade
98+
// TS2322: Type 'Buffer' is not assignable to type 'Uint8Array<ArrayBufferLike>'.
99+
// @ts-ignore
97100
return fs.readFileSync(path);
98101
}
99102
readdir(path: AbsoluteFsPath): PathSegment[] {

0 commit comments

Comments
 (0)