Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Remove unnecessary export types and reorganize types #99

Merged
merged 5 commits into from
Feb 15, 2019

Conversation

kristw
Copy link
Contributor

@kristw kristw commented Feb 15, 2019

🏠 Internal

This is to fix #94 by removing the exported type that are not necessary and move the ones that are exported to types.ts or types/xxx.ts.

Also clean up some styling by replacing Array<xxx> with xxx[]

@kristw kristw requested a review from a team as a code owner February 15, 2019 05:29
@kristw kristw changed the title Remove unnecessary export type and reorganize types Remove unnecessary export types and reorganize types Feb 15, 2019
@codecov
Copy link

codecov bot commented Feb 15, 2019

Codecov Report

Merging #99 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #99   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          75     74    -1     
  Lines         865    865           
  Branches      194    196    +2     
=====================================
  Hits          865    865
Impacted Files Coverage Δ
...ackages/superset-ui-chart/src/models/ChartProps.ts 100% <ø> (ø) ⬆️
...ckages/superset-ui-chart/src/models/ChartPlugin.ts 100% <ø> (ø) ⬆️
...superset-ui-translation/src/TranslatorSingleton.ts 100% <ø> (ø) ⬆️
...ages/superset-ui-chart/src/models/ChartMetadata.ts 100% <ø> (ø) ⬆️
.../superset-ui-connection/src/SupersetClientClass.ts 100% <ø> (ø) ⬆️
packages/superset-ui-color/src/index.ts 100% <ø> (ø) ⬆️
packages/superset-ui-translation/src/Translator.ts 100% <ø> (ø) ⬆️
...erset-ui-core/src/models/RegistryWithDefaultKey.ts 100% <ø> (ø) ⬆️
...kages/superset-ui-chart/src/query/DatasourceKey.ts 100% <ø> (ø) ⬆️
packages/superset-ui-core/src/models/Registry.ts 100% <ø> (ø) ⬆️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5a42de...1d8254c. Read the comment docs.

TransformPropsFunction,
} from './models/ChartPlugin';
export { default as ChartProps, ChartPropsConfig } from './models/ChartProps';
export { default as ChartClient } from './clients/ChartClient';
Copy link
Contributor

Choose a reason for hiding this comment

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

💯 This is easier to read!

Copy link
Contributor

@xtinec xtinec left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for doing this!

@kristw kristw merged commit d1f3b57 into master Feb 15, 2019
@delete-merged-branch delete-merged-branch bot deleted the kristw--fix-type branch February 15, 2019 20:44
@kristw kristw added this to the v0.9.5 milestone Feb 20, 2019
export { default as buildQueryContext } from './query/buildQueryContext';
export { default as DatasourceKey } from './query/DatasourceKey';

export * from './types/Annotation';
Copy link
Contributor

Choose a reason for hiding this comment

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

generally I think it's good to be explicit with exports for readability + ensuring that there is no conflict / overriding of variables (unsure if that would error or cause subtle bugs for types)

@williaster
Copy link
Contributor

thanks for making this change!

kristw pushed a commit that referenced this pull request Apr 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warning "export 'xxx' was not found in '...'"
3 participants