Skip to content

Commit 576d6e2

Browse files
authored
Merge pull request #93 from adorableio/typescript
Replace Babel with Typescript
2 parents ce32df4 + 370e966 commit 576d6e2

32 files changed

+2315
-4641
lines changed

.babelrc

Lines changed: 0 additions & 18 deletions
This file was deleted.

.npmignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 80,
3+
"semi": true,
4+
"singleQuote": true,
5+
"tabWidth": 2,
6+
"trailingComma": "all"
7+
}

index.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
type ImageType = 'eyes' | 'nose' | 'mouth';
2+
type FaceParts = ImageType | 'color';
3+
4+
interface Face {
5+
color: string;
6+
eyes: string;
7+
nose: string;
8+
mouth: string;
9+
}

0 commit comments

Comments
 (0)