chore: fix type issues

This commit is contained in:
jorenbroekema 2022-02-28 15:28:31 +01:00
parent 57d2c62b78
commit 006a47e530
3 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,4 @@
import { ifDefined, LitElement } from '@lion/core'; import { LitElement } from '@lion/core';
import { IsNumber, LionField, Validator } from '@lion/form-core'; import { IsNumber, LionField, Validator } from '@lion/form-core';
import '@lion/form-core/define'; import '@lion/form-core/define';
import { localizeTearDown } from '@lion/localize/test-helpers'; import { localizeTearDown } from '@lion/localize/test-helpers';
@ -1387,8 +1387,8 @@ export function runFormGroupMixinSuite(cfg = {}) {
render() { render() {
return html` return html`
<${tag} <${tag}
.modelValue=${ifDefined(this.modelValue)} .modelValue=${this.modelValue}
.serializedValue=${ifDefined(this.serializedValue)}> .serializedValue=${this.serializedValue}>
${this.fields.map(field => { ${this.fields.map(field => {
if (typeof field === 'object') { if (typeof field === 'object') {
return html`<${childTag} name="${field.name}" .modelValue="${field.value}"></${childTag}>`; return html`<${childTag} name="${field.name}" .modelValue="${field.value}"></${childTag}>`;

View file

@ -12,7 +12,8 @@
"alwaysStrict": true, "alwaysStrict": true,
"types": ["node", "mocha", "sinon"], "types": ["node", "mocha", "sinon"],
"esModuleInterop": true, "esModuleInterop": true,
"suppressImplicitAnyIndexErrors": true "suppressImplicitAnyIndexErrors": true,
"skipLibCheck": true
}, },
"include": ["packages/**/*.js", "packages-node/**/*.js"], "include": ["packages/**/*.js", "packages-node/**/*.js"],
"exclude": [ "exclude": [