mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
add missing safestring methods
This commit is contained in:
Vendored
+5
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user