I am working on a Cloud Functions project initialized with Firebase SDK.
I chose typescript as a language.
I would like to import a non js, non ts file as a string, using import syntax. For example:
import * as content from './templates/text.md'
But obviously, I get an error:
error TS2307: Cannot find module './templates/text.md'.
How should I configure my project (.d.ts files? tsconfig.json? something else), so that it compiles correctly.
For reference of how the project is initialized with Firebase SDK: https://firebase.google.com/docs/functions/get-started