Skip to content

Commit

Permalink
Fix TypeScript issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancelik committed Apr 23, 2023
1 parent c250d49 commit 4d87a55
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/bin/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'path';
import updateNotifier from 'update-notifier';
import logSymbols from 'log-symbols';
import fs from 'fs';
import { AllOptions } from '../options';
import { AllOptions } from '../options.js';
import { CommandModule } from 'yargs';

export function loadUrls(argv: Partial<AllOptions>) {
Expand Down
4 changes: 2 additions & 2 deletions src/cache.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Response, Options } from 'got/dist/source';
import { Response, Options } from 'got';
import { Readable } from 'node:stream';
import LruCache from 'lru-cache';
import _debug from 'debug';
import fs from 'fs/promises';
import { tmpdir } from 'node:os';
import path from 'node:path';
import { AllOptions, ICliOptions } from './options';
import { AllOptions, ICliOptions } from './options.js';

const debug = _debug('twdl:cache');

Expand Down
4 changes: 2 additions & 2 deletions src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-var */
import { ProcessStatus } from "./bin/util";
import { AllOptions } from "./options";
import { ProcessStatus } from "./bin/util.js";
import { AllOptions } from "./options.js";

declare global {
var argv: Partial<AllOptions>;
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"module": "ES2020",
"moduleResolution": "Node",
"moduleResolution": "node16",
"skipLibCheck": true,
"target": "ES2020",
"esModuleInterop": true,
"removeComments": true,
Expand Down

0 comments on commit 4d87a55

Please sign in to comment.