質問編集履歴
2
ファイル名の追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,7 +9,9 @@
|
|
9
9
|
FirebaseのClassのページ、
|
10
10
|
でそれぞれファイルを分けています。
|
11
11
|
|
12
|
+
```
|
12
|
-
|
13
|
+
// loadFirebase.ts
|
14
|
+
|
13
15
|
const app = import("firebase/app");
|
14
16
|
const auth = import("firebase/auth");
|
15
17
|
const database = import("firebase/firestore");
|
@@ -30,7 +32,7 @@
|
|
30
32
|
```
|
31
33
|
|
32
34
|
|
33
|
-
|
35
|
+
下のfierbase.tsの
|
34
36
|
app,
|
35
37
|
auth,
|
36
38
|
db,
|
@@ -38,7 +40,9 @@
|
|
38
40
|
storage,
|
39
41
|
にあった型をどのように定義すれば良いのかわかりません。
|
40
42
|
|
43
|
+
```
|
41
|
-
|
44
|
+
// firebase.ts
|
45
|
+
|
42
46
|
import firebaseConfig from "./config";
|
43
47
|
import firebase from "firebase/app";
|
44
48
|
|
1
Firebaseタグの追加
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|