UNPKG
@hstech/ts-lint
Version:
latest (1.2.0)
1.2.0
1.1.0
1.0.8
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
> A shareable tslint + prettier config
@hstech/ts-lint
/
samples
/
test.ts
17 lines
(13 loc)
•
284 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
interface
test {
hey
:
string
; }
export
const
newFunction = (
str
:
string
):
Promise
<
void
> =>
Promise
.
resolve
();
const
str =
''
;
const
num =
0
;
const
isNull =
false
;
const
nullVar
:
string
|
null
=
null
; (
async
() => {
await
new
Promise
(
resolve
=>
{
resolve
(
null
); }); })();