Skip to content

Commit af7ce00

Browse files
Fix lint
1 parent 2d4e7c6 commit af7ce00

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/demos/utils/ts-to-js-converter/converter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const pipeSource = async (
7878
}));
7979
};
8080

81-
const execTsc = async (directory: string, args: string[]): Promise<string> => new Promise((resolve, reject) => {
81+
const execTsc = (directory: string, args: string[]): Promise<string> => new Promise((resolve, reject) => {
8282
const proc = cps.spawn('tsc', args, { cwd: directory, shell: isWindows() });
8383
let stdout = '';
8484
let stderr = '';
@@ -88,7 +88,7 @@ const execTsc = async (directory: string, args: string[]): Promise<string> => ne
8888
// eslint-disable-next-line prefer-promise-reject-errors
8989
reject(`tsc failed to spawn: ${err.message}`);
9090
});
91-
proc.on('close', (code: number | null, signal: NodeJS.Signals | null) => {
91+
proc.on('close', (code: number | null, signal: string | null) => {
9292
if (signal !== null) {
9393
// eslint-disable-next-line prefer-promise-reject-errors
9494
return reject(`tsc killed by signal ${signal}\n${stderr}\n${stdout}`);

0 commit comments

Comments
 (0)