Skip to content

fix(utils): invalid 'string' argument instead of 'src'#7

Merged
jonarnes merged 1 commit intomainfrom
bugfix/gh-6-invalid-string-argument-was-passed-instead-of-src
Sep 20, 2022
Merged

fix(utils): invalid 'string' argument instead of 'src'#7
jonarnes merged 1 commit intomainfrom
bugfix/gh-6-invalid-string-argument-was-passed-instead-of-src

Conversation

@ssrbloginsoft
Copy link
Contributor

No description provided.

@ssrbloginsoft ssrbloginsoft linked an issue Sep 20, 2022 that may be closed by this pull request
import { IEFormat } from "@imageengine/imageengine-helpers";

const ALLOWED_INPUT_EXTENSIONS: IEFormat[] = [
const ALLOWED_INPUT_EXTENSIONS: (IEFormat | 'tif')[] = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why we could't include all the file extensions like listed here in this constant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonarnes I think it is better to define a new type for allowed input file formats instead of using IEFormat because it contains type definition of allowed output formats. Since this change has to be done in helpers module I made a workaround and fix the issue and raised the pr. I will be creating a new issue to address this and update accordingly.

@jonarnes jonarnes merged commit 3cd946f into main Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

invalid 'string' argument was passed instead of 'src'

2 participants