mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
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:
Vendored
+1
-20
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user