Skip to content

Commit a1ca37b

Browse files
author
roman.vasilev
committed
Added test files
1 parent af659d1 commit a1ca37b

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

src/index.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* eslint-disable @typescript-eslint/tslint/config */
2+
import * as lib from './index';
3+
4+
it('smoke', () => {
5+
expect(lib).toBeTruthy();
6+
});

src/index.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { PlainObject } from 'simplytyped';
2+
3+
const dict: PlainObject = {};
4+
5+
/**
6+
* Hello function whithout parameter
7+
* @returns result string
8+
*/
9+
export function hello(): string;
10+
11+
/**
12+
* This is hello function
13+
* @returns result string
14+
*/
15+
export function hello(greet?: string) {
16+
return `${greet} world`;
17+
}
18+
19+
export class X {
20+
21+
constructor(
22+
private readonly o: PlainObject,
23+
) { }
24+
}

0 commit comments

Comments
 (0)