Skip to content

Commit

Permalink
feat: add types for build.current
Browse files Browse the repository at this point in the history
can be useful in events autocomplete
  • Loading branch information
cossssmin committed Aug 1, 2024
1 parent cca8060 commit 18c75f7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions types/build.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
};
}

0 comments on commit 18c75f7

Please sign in to comment.