I would like to use toastr in a Typescript project. I have enabled AMD. I have added the d.ts file for it.
In app.ts:
/// <reference path="scripts/typings/toastr/toastr.d.ts" /> toastr.info("Test"); This compiles and runs, but fails of course because toastr.js is not loaded.
How to I require() toastr?
Have tried:
import toastr = require("toastr"); but it gives me a message saying toastr cannot be found.