File tree 5 files changed +34
-4
lines changed
5 files changed +34
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @firebase/app-compat " : patch
3
+ ---
4
+
5
+ Remove private types in app-compat
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ../../config/api-extractor.json" ,
3
+ // Point it to your entry point d.ts file.
4
+ "mainEntryPointFilePath" : " <projectFolder>/dist/src/index.d.ts" ,
5
+ "dtsRollup" : {
6
+ "enabled" : true ,
7
+ "untrimmedFilePath" : " <projectFolder>/dist/<unscopedPackageName>.d.ts" ,
8
+ "publicTrimmedFilePath" : " <projectFolder>/dist/<unscopedPackageName>-public.d.ts"
9
+ },
10
+ "apiReport" : {
11
+ /**
12
+ * only dts rollup is needed for app-compat
13
+ */
14
+ "enabled" : false
15
+ }
16
+ }
Original file line number Diff line number Diff line change 14
14
"scripts" : {
15
15
"lint" : " eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'" ,
16
16
"lint:fix" : " eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'" ,
17
- "build" : " rollup -c" ,
17
+ "build" : " rollup -c && yarn api-report " ,
18
18
"build:deps" : " lerna run --scope @firebase/app-compat --include-dependencies build" ,
19
19
"dev" : " rollup -c -w" ,
20
20
"test" : " run-p lint test:all" ,
21
21
"test:all" : " run-p test:browser test:node" ,
22
22
"test:ci" : " node ../../scripts/run_tests_in_ci.js -s test:all" ,
23
23
"test:browser" : " karma start --single-run" ,
24
24
"test:browser:debug" : " karma start --browsers Chrome --auto-watch" ,
25
- "test:node" : " TS_NODE_FILES=true TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\" module\" :\" commonjs\" }' nyc --reporter lcovonly -- mocha test/**/*.test.* src/**/*.test.ts --config ../../config/mocharc.node.js"
25
+ "test:node" : " TS_NODE_FILES=true TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\" module\" :\" commonjs\" }' nyc --reporter lcovonly -- mocha test/**/*.test.* src/**/*.test.ts --config ../../config/mocharc.node.js" ,
26
+ "api-report" : " api-extractor run --local --verbose" ,
27
+ "typings:public" : " node ../../scripts/exp/use_typings.js ./dist/app-compat-public.d.ts"
26
28
},
27
29
"license" : " Apache-2.0" ,
28
30
"dependencies" : {
Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ export interface _FirebaseApp {
59
59
/**
60
60
* Global context object for a collection of services using
61
61
* a shared authentication state.
62
+ *
63
+ * marked as internal because it references internal types exported from @firebase/app
64
+ * @internal
62
65
*/
63
66
export class FirebaseAppImpl implements Compat < _FirebaseAppExp > , _FirebaseApp {
64
67
private container : ComponentContainer ;
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
import { LogCallback , LogLevelString , LogOptions } from '@firebase/logger' ;
18
- import { FirebaseAppImpl , _FirebaseApp } from './firebaseApp' ;
18
+ import { _FirebaseApp } from './firebaseApp' ;
19
19
20
20
export interface FirebaseOptions {
21
21
apiKey ?: string ;
@@ -31,6 +31,10 @@ export interface FirebaseOptions {
31
31
export interface FirebaseAppConfig {
32
32
name ?: string ;
33
33
automaticDataCollectionEnabled ?: boolean ;
34
+ }
35
+
36
+ interface FirebaseAppContructor {
37
+ new ( ) : FirebaseApp ;
34
38
}
35
39
36
40
/**
@@ -81,7 +85,7 @@ export interface FirebaseNamespace {
81
85
*
82
86
* DO NOT call this constuctor directly (use firebase.app() instead).
83
87
*/
84
- App : typeof FirebaseAppImpl ;
88
+ App : FirebaseAppContructor ;
85
89
} ;
86
90
87
91
/**
You can’t perform that action at this time.
0 commit comments