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

How about supporting TypeScript file? #24

Closed
munierujp opened this issue Apr 5, 2023 · 3 comments
Closed

How about supporting TypeScript file? #24

munierujp opened this issue Apr 5, 2023 · 3 comments

Comments

@munierujp
Copy link
Contributor

Writing configuration files in TypeScript is useful in preventing typographical and type errors.

import type {Config} from 'jest';

const config: Config = {
  verbose: true,
};

export default config;

https://jestjs.io/ja/docs/configuration

In cosmiconfig, TypeScript is supported by the third-party cosmiconfig-typescript-loader.
How about supporting TypeScript file?

@azu
Copy link
Owner

azu commented Apr 5, 2023

Related

@azu
Copy link
Owner

azu commented Apr 5, 2023

I have looked at this again and many of the use cases will be the type to the whole Config like Config.
Therefore, we think that it would be less expensive to use TSDoc for .js.

Documents and Examples are welcome!

@munierujp
Copy link
Contributor Author

@azu I have understood the disadvantages of supporting TypeScript. Thank you!

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

No branches or pull requests

2 participants