Skip to content

Commit e8f4eb0

Browse files
committed
fix(miniprogram-typescript): errors on unknown elements
1 parent 259c695 commit e8f4eb0

File tree

1 file changed

+1
-1
lines changed
  • glass-easel-miniprogram-typescript/src

1 file changed

+1
-1
lines changed

glass-easel-miniprogram-typescript/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ type Properties<T> = _ComponentFieldTypes_<T> extends _Component_<infer P, any,
349349
: 'type UnknownElement = { _$fieldTypes: null, [k: string]: any }'
350350
const otherComponents = this.options.strictMode
351351
? '[other: string]: unknown'
352-
: '[other: string]: { [k: string]: any }'
352+
: '[other: string]: any'
353353
const tagsLine = `
354354
declare const tags: {
355355
${usingComponentsItems.join('')}${otherComponents} }`

0 commit comments

Comments
 (0)