Skip to content

Commit

Permalink
Enable isolatedModules #10706
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Sep 9, 2024
1 parent 0c75313 commit b2465ba
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion projects/natural-editor/src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

export {NaturalCustomCssDirective} from './lib/custom-css/custom-css.directive';
export {NaturalEditorComponent} from './lib/editor/editor.component';
export {ImageUploader} from './lib/utils/image';
export type {ImageUploader} from './lib/utils/image';
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
* Public API Surface of natural
*/

export {AvailableColumn, Button, SubButton} from './types';
export type {AvailableColumn, Button, SubButton} from './types';
export * from './columns-picker.component';
5 changes: 2 additions & 3 deletions projects/natural/src/lib/modules/common/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ export {NaturalTimeAgoPipe} from './pipes/time-ago.pipe';
export * from './services/memory-storage';
export {NaturalSrcDensityDirective} from './directives/src-density.directive';
export {NaturalBackgroundDensityDirective} from './directives/background-density.directive';
export {
NATURAL_SEO_CONFIG,
export {NATURAL_SEO_CONFIG, NaturalSeoService} from './services/seo.service';
export type {
NaturalSeoConfig,
NaturalSeoService,
NaturalSeo,
NaturalSeoBasic,
NaturalSeoResolve,
Expand Down
26 changes: 17 additions & 9 deletions projects/natural/src/lib/modules/dropdown-components/public-api.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
/*
* Public API Surface of natural-search dropdown components
*/
export {TypeSelectConfiguration, TypeSelectItem, TypeSelectComponent} from './type-select/type-select.component';
export {
type TypeSelectConfiguration,
type TypeSelectItem,
TypeSelectComponent,
} from './type-select/type-select.component';

export {
TypeSelectNaturalConfiguration,
type TypeSelectNaturalConfiguration,
TypeNaturalSelectComponent,
} from './type-natural-select/type-natural-select.component';

export {TypeNumberConfiguration, TypeNumberComponent} from './type-number/type-number.component';
export {type TypeNumberConfiguration, TypeNumberComponent} from './type-number/type-number.component';

export {
TypeHierarchicSelectorConfiguration,
type TypeHierarchicSelectorConfiguration,
TypeHierarchicSelectorComponent,
} from './type-hierarchic-selector/type-hierarchic-selector.component';

export {TypeDateConfiguration, TypeDateComponent} from './type-date/type-date.component';
export {type TypeDateConfiguration, TypeDateComponent} from './type-date/type-date.component';

export {TypeDateRangeConfiguration, TypeDateRangeComponent} from './type-date-range/type-date-range.component';
export {type TypeDateRangeConfiguration, TypeDateRangeComponent} from './type-date-range/type-date-range.component';

export {TypeTextComponent, InvalidWithValueStateMatcher} from './type-text/type-text.component';

export {TypeBooleanConfiguration, TypeBooleanComponent} from './type-boolean/type-boolean.component';
export {TypeOptionsConfiguration, TypeOption, TypeOptionsComponent} from './type-options/type-options.component';
export {possibleComparableOperators, PossibleComparableOpertorKeys} from './types';
export {type TypeBooleanConfiguration, TypeBooleanComponent} from './type-boolean/type-boolean.component';
export {
type TypeOptionsConfiguration,
type TypeOption,
TypeOptionsComponent,
} from './type-options/type-options.component';
export {possibleComparableOperators, type PossibleComparableOpertorKeys} from './types';
2 changes: 1 addition & 1 deletion projects/natural/src/lib/modules/file/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
export * from './file-drop.directive';
export * from './file-select.directive';
export * from './file.service';
export {InvalidFile, FileSelection} from './abstract-file';
export type {InvalidFile, FileSelection} from './abstract-file';
export * from './component/file.component';
export * from './types';
9 changes: 2 additions & 7 deletions projects/natural/src/lib/modules/logger/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,5 @@

export {provideErrorHandler} from './error.module';

export {
NaturalErrorHandler,
NaturalLoggerConfigExtra,
NaturalLoggerConfigUrl,
NaturalLoggerExtra,
NaturalLoggerType,
} from './error-handler';
export {NaturalErrorHandler, NaturalLoggerConfigExtra, NaturalLoggerConfigUrl} from './error-handler';
export type {NaturalLoggerExtra, NaturalLoggerType} from './error-handler';
10 changes: 5 additions & 5 deletions projects/natural/src/lib/modules/search/public-api.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Public API Surface of natural-search
*/
export {NaturalDropdownData} from './dropdown-container/dropdown.service';
export {FilterGroupConditionField, Filter} from './classes/graphql-doctrine.types';
export {DropdownComponent} from './types/dropdown-component';
export {FlagFacet, DropdownFacet, Facet, NaturalSearchFacets} from './types/facet';
export {NaturalSearchSelections, NaturalSearchSelection} from './types/values';
export type {NaturalDropdownData} from './dropdown-container/dropdown.service';
export type {FilterGroupConditionField, Filter} from './classes/graphql-doctrine.types';
export type {DropdownComponent} from './types/dropdown-component';
export type {FlagFacet, DropdownFacet, Facet, NaturalSearchFacets} from './types/facet';
export type {NaturalSearchSelections, NaturalSearchSelection} from './types/values';
export {NaturalDropdownRef} from './dropdown-container/dropdown-ref';
export {NATURAL_DROPDOWN_DATA} from './dropdown-container/dropdown.service';
export {toGraphQLDoctrineFilter} from './classes/graphql-doctrine';
Expand Down
9 changes: 3 additions & 6 deletions projects/natural/src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,11 @@ export * from './lib/services/abstract-model.service';
export {NaturalDebounceService} from './lib/services/debounce.service';
export * from './lib/services/enum.service';
export * from './lib/services/link-mutation.service';
export {
NaturalPersistenceService,
NATURAL_PERSISTENCE_VALIDATOR,
PersistenceValidator,
} from './lib/services/persistence.service';
export {NaturalPersistenceService, NATURAL_PERSISTENCE_VALIDATOR} from './lib/services/persistence.service';
export type {PersistenceValidator} from './lib/services/persistence.service';
export * from './lib/services/swiss-parsing-date-adapter.service';

export {
export type {
ExtractResolve,
ExtractTall,
ExtractTallOne,
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"isolatedModules": true,
"typeRoots": ["node_modules/@types"],
"lib": ["ES2022", "dom"],
"skipLibCheck": true,
"paths": {
"@ecodev/natural": ["projects/natural/src/public-api"],
"@ecodev/natural-editor": ["projects/natural-editor/src/public-api"]
Expand Down

0 comments on commit b2465ba

Please sign in to comment.