-
Notifications
You must be signed in to change notification settings - Fork 155
Maintenance: simplify and revisit tsconfig files & settings #617
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
Comments
Hi @saragerion! as far as I have understood, this issue is regarding making one common file for tsconfig for all three folders(Logger, Metrics, Tracer) which has similar settings, and extend individual/different settings in each of the folder through new tsconfig files. ryt? please let me know if I'am missing something here :) Thanks! |
@goverdhan07 thanks for commenting the issue, I understand that what you're mentioning is correct but there might also be some settings in the |
Also note that there are some additional |
Not sure if related, but in #1373, and specifically in point 4 of the issue it's mentioned that even though const MetricUnit = {
Bites: 'Bites'
} as const;
type MetricUnit = typeof MetricUnit;
interface MetricsInterface {
addMetric(name: string, unit: MetricUnit, value: number): void
}
class Metric implements MetricsInterface {
// Should show an error saying that `addMetric` is not compatible with the one defined in the interface
public addMetric(name: string, unit: MetricUnit, value: number, resolution: string): void {
console.log(name, unit, value);
}
} |
Additionally, I have looked into this:
The reason why we have these separate config files that selectively include the tests are that we want both |
|
This is now released under v1.13.0 version! |
Description of the feature request
Right now the tsconfig files located in the folder of each utility (Logger, Metrics, Tracer) have repeated settings with some differences.
Example:
resolveJsonModule
in the Logger utility, but there might be others.Would be good to revisit the current tsconfig setup and the way we transpile our code.
Problem statement
Inconsistent, potentially unnecessary tsconfig settings across the same utility and different utilities.
Summary of the feature
Simplify tsconfig files & settings.
Code examples
I like the way the AWS SDK v3 does it, extending one another:
https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3
Benefits for you and the wider AWS community
Simplification and better governance.
Describe alternatives you've considered
N/A
Additional context
This issue affects all existing utilities.
Related issues, RFCs
The text was updated successfully, but these errors were encountered: