Типы шрифтов не работают для firebase-admin:
это файл tsconfig.json:
"compilerOptions": {
"lib": [
"es6",
"es2015.promise"
],
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"jsx": "react",
"outDir": ".",
"rootDir": ".",
"allowSyntheticDefaultImports": true,
"noImplicitAny": true,
"experimentalDecorators": true,
"preserveConstEnums": true,
"allowJs": true,
"sourceMap": true,
"strictNullChecks": true,
"typeRoots": [ <------ // I tried to use typeRoots with @google-cloud
"node_modules/@types" // but it gives errors on tsc
]
@ google-cloud / firestore решает наборы, но когда я компилирую 'tsc', я получаю:
TS2688: Cannot find type definition file for 'protos'.
TS2688: Cannot find type definition file for 'src'.
TS2688: Cannot find type definition file for 'types'.