diff --git a/app/components/model-form/file-input.ts b/app/components/model-form/file-input.ts index d09a90fac..9281108a6 100644 --- a/app/components/model-form/file-input.ts +++ b/app/components/model-form/file-input.ts @@ -4,13 +4,15 @@ import type { UploadFile } from 'ember-file-upload'; import { action } from '@ember/object'; import { tracked } from '@glimmer/tracking'; -export interface FileInputSignature extends TextInputSignature { - validMimeTypes?: string[]; - validExtensions?: string[]; - loadedCallback: ( - file: UploadFile, - data: Awaited> - ) => void; +export interface FileInputSignature { + Args: TextInputSignature['Args'] & { + validMimeTypes?: string[]; + validExtensions?: string[]; + loadedCallback: ( + file: UploadFile, + data: Awaited> + ) => void; + }; } export default class FileInput extends TextInput { diff --git a/app/components/model-form/text-input.ts b/app/components/model-form/text-input.ts index e9e575359..5861ba9fd 100644 --- a/app/components/model-form/text-input.ts +++ b/app/components/model-form/text-input.ts @@ -2,12 +2,14 @@ import Component from '@glimmer/component'; import type Model from '@ember-data/model'; export interface TextInputSignature { - inputLayout?: string; - labelClass?: string; - inputWrapperClass?: string; - model: T; - property: keyof T; - label: string; + Args: { + inputLayout?: string; + labelClass?: string; + inputWrapperClass?: string; + model: T; + property: keyof T; + label: string; + }; } export default class TextInput<