Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manifest author Field Wrongly Typed #824

Closed
Malix-Labs opened this issue Nov 5, 2023 · 5 comments · Fixed by #902
Closed

Manifest author Field Wrongly Typed #824

Malix-Labs opened this issue Nov 5, 2023 · 5 comments · Fixed by #902

Comments

@Malix-Labs
Copy link
Contributor

Malix-Labs commented Nov 5, 2023

Build tool

Vite

Describe the bug

typing doesn't match its documentation

Severity

annoyance

@Malix-Labs Malix-Labs changed the title Manifest Author Field Wrongly Typed Manifest author Field Wrongly Typed Nov 5, 2023
@JoeyDoey
Copy link

JoeyDoey commented Apr 5, 2024

Big CRX fan! Came to post the same. Maybe CRX can inherit from @types/chrome and union/extend those types to include the Firefox and additional fields? That way types stay up to date/accurate.

Author field @types/chrome

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/chrome/index.d.ts#L7398-L7400

 author?: {
            email: string;
        } | undefined;

Author field CRX

https://github.com/crxjs/chrome-extension-tools/blob/main/packages/vite-plugin/src/node/manifest.ts#L43

author?: string | undefined

@hchangjae
Copy link

Any updates yet?

@Malix-Labs
Copy link
Contributor Author

Well I guess I will file a pull request today then

@Malix-Labs
Copy link
Contributor Author

@Malix-Labs Malix-Labs mentioned this issue Jul 8, 2024
@Malix-Labs
Copy link
Contributor Author

Malix-Labs commented Jul 8, 2024

@JoeyDoey:

Maybe CRX can inherit from @types/chrome and union/extend those types to include the Firefox and additional fields? That way types stay up to date/accurate.

Yes, that would be the best thing to do

I have opened a feature request about it, see #903

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 a pull request may close this issue.

3 participants