Skip to content

Commit

Permalink
Update DxfParser.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dotoritos-kim committed Jan 29, 2024
1 parent eb50b38 commit 0226373
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parser/DxfParser.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import fs from "fs";
import DxfArrayScanner from './DxfArrayScanner';
import { parseHeader } from './header';
import { parseTables } from './tables';
Expand All @@ -18,7 +19,7 @@ export default class DxfParser {

return this.parseAll(scanner);
}
parseStream(stream: Readable) {
parseStream(stream: Readable | fs.ReadStream) {
let dxfString = "";
const self = this;
return new Promise<ParsedDxf>((res, rej) => {
Expand Down

0 comments on commit 0226373

Please sign in to comment.