mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Enable strictNullCheck (See: https://mozilla.github.io/nunjucks/api.html#constructor)
This commit is contained in:
2
types/nunjucks/index.d.ts
vendored
2
types/nunjucks/index.d.ts
vendored
@@ -61,7 +61,7 @@ export class Environment {
|
||||
autoescape: boolean;
|
||||
};
|
||||
|
||||
constructor(loader?: ILoader | ILoader[], opts?: ConfigureOptions);
|
||||
constructor(loader?: ILoader | ILoader[] | null, opts?: ConfigureOptions);
|
||||
render(name: string, context?: object): string;
|
||||
render(name: string, context?: object, callback?: (err: any, res: string) => any): void;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
@@ -20,4 +20,4 @@
|
||||
"index.d.ts",
|
||||
"nunjucks-tests.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user