feat(ejs): Update to v3.0 (#40811)

* feat(ejs): Update to v3.0

* test(ejs): Add `<reference />` to self in UMD test
This commit is contained in:
ExE Boss
2019-12-04 16:09:08 -08:00
committed by Ron Buckton
parent c352479209
commit 3c4ac92d62
2 changed files with 3 additions and 20 deletions
+1 -20
View File
@@ -1,4 +1,4 @@
// Type definitions for ejs 2.7
// Type definitions for ejs 3.0
// Project: http://ejs.co/, https://github.com/mde/ejs
// Definitions by: Ben Liddicott <https://github.com/benliddicott>
// ExE Boss <https://github.com/ExE-Boss>
@@ -149,13 +149,6 @@ export class Template {
*/
readonly source: string;
/**
* The compiled dependencies of this template.
*
* Always empty if legacy include directives are disabled.
*/
readonly dependencies: ReadonlyArray<string>;
constructor(text: string, opts?: Options);
/**
@@ -416,18 +409,6 @@ export interface Options {
*/
async?: boolean;
/**
* Whether to enable legacy preprocessor include directives.
*
* @default true
*
* @example
* ```ejs
* <%- include foo %>
* ```
*/
legacyInclude?: boolean;
/**
* Name to use for the object storing local variables when not using `with` or destructuring.
*
+2
View File
@@ -1,3 +1,5 @@
/// <reference types="ejs"/>
/**
* The `expectType` function from https://www.npmjs.com/package/tsd,
* except instead of returning `void`, it returns `T`.