Why doesn't this method declaration: declare module "*!text" {} is not work?
The goal - to use a file content in a variable:
import layout = require("/js/views/layouts/wnd.html!text");
or so:
import layout from "/js/views/layouts/wnd.html!text";
If we do declaration as follows: declare module "/js/views/layouts/wnd.html!text" {} - everything works, but if this method is used "*!text" I get an error cannot find module. How do I force work this template: "*!text"?
The reference to an example of the documentation
I use systemJS with plug-in for download text files
Typescript version - 2.0.6