Merge pull request #784 from danielw93/master
TypeScript compiler validation of lib/index.d.ts
This commit is contained in:
commit
dd0dd7fdad
|
@ -5,6 +5,13 @@
|
|||
|
||||
declare module "react-native-firebase" {
|
||||
|
||||
/** 3rd party provider Credentials */
|
||||
type AuthCredential = {
|
||||
providerId: string,
|
||||
token: string,
|
||||
secret: string
|
||||
}
|
||||
|
||||
type FirebaseModuleAndStatics<M, S = {}> = {
|
||||
(): M;
|
||||
nativeModuleExists: boolean;
|
||||
|
@ -631,13 +638,6 @@ declare module "react-native-firebase" {
|
|||
updateProfile(updates: UpdateProfile): Promise<void>
|
||||
}
|
||||
|
||||
/** 3rd party provider Credentials */
|
||||
type AuthCredential = {
|
||||
providerId: string,
|
||||
token: string,
|
||||
secret: string
|
||||
}
|
||||
|
||||
type ActionCodeSettings = {
|
||||
android: {
|
||||
installApp?: boolean,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"scripts": {
|
||||
"build": "genversion lib/version.js && npm run build-lib && npm run build-flow",
|
||||
"build-flow": "flow-copy-source -i */__tests__* lib dist",
|
||||
"build-lib": "BABEL_ENV=publish babel lib -d dist --ignore __tests__ --copy-files",
|
||||
"build-lib": "npm run validate-ts-declarations && BABEL_ENV=publish babel lib -d dist --ignore __tests__ --copy-files",
|
||||
"clean": "rimraf dist/",
|
||||
"flow": "flow",
|
||||
"format": "eslint --fix ./lib ./tests/src ./tests/lib",
|
||||
|
@ -21,7 +21,8 @@
|
|||
"tests-npm-install": "cd tests && npm install",
|
||||
"tests-pod-install": "cd tests && npm run ios:pod:install",
|
||||
"tests-watch-start": "npm run test-cli watch init start",
|
||||
"tests-watch-stop": "npm run test-cli watch stop"
|
||||
"tests-watch-stop": "npm run test-cli watch stop",
|
||||
"validate-ts-declarations": "tsc --project ./"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -101,6 +102,7 @@
|
|||
"react-native": "^0.52.0",
|
||||
"rimraf": "^2.6.2",
|
||||
"shelljs": "^0.7.8",
|
||||
"typescript": "^2.6.2",
|
||||
"wml": "0.0.82"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"module": "commonjs",
|
||||
"jsx": "react",
|
||||
"sourceMap": true,
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"moduleResolution": "node",
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"lib": [
|
||||
"es2015",
|
||||
"es2016",
|
||||
"esnext",
|
||||
"dom"
|
||||
]
|
||||
},
|
||||
"files": [
|
||||
"./lib/index.d.ts"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue