Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ aliases:
name: Lint
command: yarn lint

- &tsc
name: TypeScript type check
command: yarn test:tsc

# -------------------------
# DEFAULTS
# -------------------------
Expand Down Expand Up @@ -100,6 +104,14 @@ jobs:
at: ~/react-native-push-notification-ios
- run: *eslint

tsc:
<<: *js_defaults
steps:
- attach_workspace:
at: ~/react-native-push-notification-ios
- run: *tsc


# -------------------------
# WORK FLOWS
# -------------------------
Expand All @@ -117,3 +129,6 @@ workflows:
- lint:
requires:
- checkout-code
- tsc:
requires:
- checkout-code
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,4 +261,4 @@ export interface PushNotificationIOSStatic {

declare const PushNotificationIOS: PushNotificationIOSStatic;

export = PushNotificationIOS;
export default PushNotificationIOS;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"test": "yarn test:flow && yarn test:js",
"test:flow": "flow check",
"test:js": "echo 0",
"lint": "eslint ."
"lint": "eslint .",
"test:tsc":"tsc --noEmit"
},
"keywords": [
"react-native",
Expand Down
11 changes: 11 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
/* Basic Options */
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"noEmit": true,
/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
}
}