From 18c75f747762477f2be438b06b4fe9e5556f9466 Mon Sep 17 00:00:00 2001 From: Cosmin Popovici Date: Thu, 1 Aug 2024 13:51:40 +0300 Subject: [PATCH] feat: add types for build.current can be useful in events autocomplete --- types/build.d.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/types/build.d.ts b/types/build.d.ts index 12f4f6a5..77e99908 100644 --- a/types/build.d.ts +++ b/types/build.d.ts @@ -116,4 +116,31 @@ export default interface BuildConfig { * ``` */ summary?: boolean; + + /** + * Information about the Template currently being compiled. + * + * @example + * + * ``` + * { + path: { + root: 'build_production', + dir: 'build_production', + base: 'transactional.html', + ext: '.html', + name: 'transactional' + } + } + * ``` + */ + current?: { + path?: { + root: string; + dir: string; + base: string; + ext: string; + name: string; + }; + }; }