mirror of
https://github.com/go-gitea/gitea
synced 2025-07-04 17:47:19 +00:00
Enable Typescript noImplicitAny
(#33322)
Enable `noImplicitAny` and fix all issues. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
@ -208,7 +208,7 @@ export const SvgIcon = defineComponent({
|
||||
let {svgOuter, svgInnerHtml} = svgParseOuterInner(this.name);
|
||||
// https://vuejs.org/guide/extras/render-function.html#creating-vnodes
|
||||
// the `^` is used for attr, set SVG attributes like 'width', `aria-hidden`, `viewBox`, etc
|
||||
const attrs = {};
|
||||
const attrs: Record<string, any> = {};
|
||||
for (const attr of svgOuter.attributes) {
|
||||
if (attr.name === 'class') continue;
|
||||
attrs[`^${attr.name}`] = attr.value;
|
||||
|
Reference in New Issue
Block a user