I am trying to import readme files in typescript but getting "error module not found"
My TS code
import * as readme from "./README.md"; // here i am getting error module not found
I also tried: typings.d.ts
declare module "*.md" {
const value: any;
export default value;
}
I found that in typescript 2.0 https://github.com/Microsoft/TypeScript/wiki/What's-new-in-TypeScript#typescript-20 they have introduced "Wildcard character in module names" using that we can include any extension file.
I just followed example https://hackernoon.com/import-json-into-typescript-8d465beded79 which is for json files I followed same for markdown files but no success.
I am not using webpack and any loader, so I just wanted it only from typescript