Skip to content

Commit bdc529d

Browse files
committed
fix: added type import
1 parent 44d0412 commit bdc529d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app-config-webpack/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { join } from 'path';
22
import { Compiler } from 'webpack';
33
import type { ConfigLoadingOptions, SchemaLoadingOptions } from '@app-config/main';
4+
import type { HtmlTagObject } from 'html-webpack-plugin';
45

56
import { regex } from './loader';
67

@@ -94,7 +95,9 @@ export default class AppConfigPlugin implements Options {
9495
'AppConfigPlugin',
9596
async ({ headTags, ...html }) => {
9697
// remove placeholder <script id="app-config"></script> if it exists
97-
const newTags = headTags.filter(({ attributes }) => attributes.id !== 'app-config');
98+
const newTags: HtmlTagObject[] = headTags.filter(
99+
({ attributes }) => attributes.id !== 'app-config',
100+
);
98101

99102
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
100103
newTags.push({

0 commit comments

Comments
 (0)