mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
adding Less.RenderError to less.d.ts
This commit is contained in:
+2
-2
@@ -8,6 +8,6 @@ less.render(".class { width: (1 + 1) }").then((output) => {
|
||||
|
||||
less.render("fail").then((output) => {
|
||||
throw new Error("promise should have been rejected");
|
||||
}, () => {
|
||||
console.log("rejected as expected");
|
||||
}, (error: Less.RenderError) => {
|
||||
console.log("rejected as expected on line number " + error.line);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user