add missing safestring methods

This commit is contained in:
Tyler Johnson
2018-08-14 13:16:50 -06:00
parent 44988b0a81
commit f0c300861b
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -140,6 +140,10 @@ export class PrecompiledLoader extends Loader implements ILoader {
export namespace runtime {
class SafeString {
constructor(...args: any[]);
constructor(val: string);
val: string;
length: number;
valueOf(): string;
toString(): string;
}
}
+1 -1
View File
@@ -53,4 +53,4 @@ class MyLoader extends nunjucks.Loader implements nunjucks.ILoader {
env = new nunjucks.Environment(new MyLoader());
new nunjucks.runtime.SafeString();
new nunjucks.runtime.SafeString("an unsafe string");