Skip to content

Commit 77d41f6

Browse files
authored
feat: Use TypeScript in the codebase and expose TypeScript type-definitions (#101)
Thanks to @nikteg the `react-native` dialog codebase is now using TypeScript and it's shipping the type-definitions by default! BREAKING CHANGE: Previous type definitions used in your app may not be compatible with this release anymore.
1 parent e3248da commit 77d41f6

21 files changed

+47216
-20773
lines changed

.eslintrc

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
11
{
2-
"extends": ["plugin:react-app/recommended", "plugin:prettier/recommended"]
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 2017,
6+
"sourceType": "module",
7+
"ecmaFeatures": {
8+
"jsx": true
9+
}
10+
},
11+
"plugins": [
12+
"@typescript-eslint",
13+
"react-native"
14+
],
15+
"extends": [
16+
"plugin:react/recommended",
17+
"prettier/@typescript-eslint",
18+
"plugin:@typescript-eslint/eslint-recommended",
19+
"plugin:@typescript-eslint/recommended",
20+
"plugin:prettier/recommended"
21+
],
22+
"settings": {
23+
"react": {
24+
"version": "detect"
25+
}
26+
},
27+
"rules": {
28+
"@typescript-eslint/explicit-module-boundary-types": 0,
29+
"@typescript-eslint/no-explicit-any": 0
30+
}
331
}

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
- name: Install dependencies
2929
run: npm ci
3030

31+
- name: Build
32+
run: npm run build
33+
3134
- name: Release
3235
env:
3336
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint & Test
1+
name: Build & Test
22

33
on:
44
push:
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
test:
1313
runs-on: ubuntu-latest
14-
name: Test & Lint
14+
name: Build & Lint
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v2
@@ -32,5 +32,8 @@ jobs:
3232
- name: Install dependencies
3333
run: npm ci
3434

35+
- name: Run build
36+
run: npm run build
37+
3538
- name: Run lint
3639
run: npm run lint

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ jsconfig.json
99
dump.rdb
1010
.vscode
1111
.idea
12+
13+
/lib

0 commit comments

Comments
 (0)