From 3c4ac92d62ebfb6faaf0f19591e98252a574bb92 Mon Sep 17 00:00:00 2001 From: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Date: Thu, 5 Dec 2019 01:09:08 +0100 Subject: [PATCH] =?UTF-8?q?feat(ejs):=20Update=C2=A0to=C2=A0v3.0=20(#40811?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(ejs): Update to v3.0 * test(ejs): Add `` to self in UMD test --- types/ejs/index.d.ts | 21 +-------------------- types/ejs/test/ejs.umd.test.ts | 2 ++ 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/types/ejs/index.d.ts b/types/ejs/index.d.ts index 7d5e73ad8f..fc921cffb5 100644 --- a/types/ejs/index.d.ts +++ b/types/ejs/index.d.ts @@ -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 // 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; - 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. * diff --git a/types/ejs/test/ejs.umd.test.ts b/types/ejs/test/ejs.umd.test.ts index 74791c24a9..1ea0489956 100644 --- a/types/ejs/test/ejs.umd.test.ts +++ b/types/ejs/test/ejs.umd.test.ts @@ -1,3 +1,5 @@ +/// + /** * The `expectType` function from https://www.npmjs.com/package/tsd, * except instead of returning `void`, it returns `T`.