Skip to content

Commit 1948c6a

Browse files
committed
chore: adding other missing converted files
1 parent 2f95348 commit 1948c6a

File tree

6 files changed

+1446
-2465
lines changed

6 files changed

+1446
-2465
lines changed

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
module.exports = {
22
testTimeout: 15000,
33
transform: {
4-
'\\.[jt]sx?$': 'babel-jest'
4+
'.[jt]sx?$': 'ts-jest'
55
},
6+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
67
testEnvironment: 'node',
78
testEnvironmentOptions: {
89
url: 'http://localhost/'

lib/types/emojic.d.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
declare module 'emojic' {
2+
interface EmojicInterface {
3+
wave: string
4+
sparkles: string
5+
rotatingLight: string
6+
bulb: string
7+
zero: string
8+
one: string
9+
two: string
10+
three: string
11+
four: string
12+
five: string
13+
six: string
14+
seven: string
15+
eight: string
16+
nine: string
17+
[key: string]: string
18+
}
19+
20+
const emojic: EmojicInterface
21+
export = emojic
22+
}

lib/types/nixt.d.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
declare module 'nixt' {
2+
interface NixtInstance {
3+
cwd(path: string): NixtInstance
4+
base(command: string): NixtInstance
5+
clone(): NixtInstance
6+
run(command: string): NixtInstance
7+
code(code: number): NixtInstance
8+
expect(
9+
callback: (result: { stdout: string; stderr: string }) => void
10+
): NixtInstance
11+
end(callback: (err?: Error) => void): void
12+
}
13+
14+
interface NixtOptions {
15+
newlines?: boolean
16+
colors?: boolean
17+
[key: string]: any
18+
}
19+
20+
function nixt(options?: NixtOptions): NixtInstance
21+
22+
export default nixt
23+
}

lib/types/wrap-ansi.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
declare module 'wrap-ansi' {
2+
function wrapAnsi(
3+
input: string,
4+
columns: number,
5+
options?: {
6+
hard?: boolean
7+
trim?: boolean
8+
wordWrap?: boolean
9+
}
10+
): string
11+
12+
export default wrapAnsi
13+
}

0 commit comments

Comments
 (0)