Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 0f7024a

Browse files
authored
refactor: update get-stdin typings (#220)
1 parent 1b4378c commit 0f7024a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as fs from 'fs';
22
import * as babylon from 'babylon';
3-
import * as getStdinTs from 'get-stdin';
4-
const getStdin: typeof getStdinTs.getStdin = getStdinTs as any;
3+
import * as getStdin from 'get-stdin';
54

65
import { generateTypings } from './deprecated';
76
import { Generator } from './generator';

typings/get-stdin.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
declare module 'get-stdin' {
2-
export function getStdin(): PromiseLike<string>;
2+
function getStdin(): PromiseLike<string>;
3+
namespace getStdin {}
4+
export = getStdin;
35
}

0 commit comments

Comments
 (0)