Skip to content

Commit

Permalink
fix: Deno 1.40 deprecation warnings (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnauorriols authored Jan 26, 2024
1 parent 9471d5c commit 9e378ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export class Spinner {
let columns = 80;
try {
//@ts-ignore TS2339
columns = Deno.consoleSize(this.#stream.rid)?.columns ?? columns;
columns = Deno.consoleSize().columns ?? columns;
} catch {
// Unstable APIs is not enabled, fallback to default
}
Expand Down

0 comments on commit 9e378ad

Please sign in to comment.