Skip to content

Commit 66435ab

Browse files
committed
fix: fix compilation errors with TypeScript 4.2.x
re-export juggler.DataSource to avoid TS compilation errors Signed-off-by: Raymond Feng <[email protected]>
1 parent d204c51 commit 66435ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/repository/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414

1515
export * from '@loopback/filter';
1616
export {JSONSchema7 as JsonSchema} from 'json-schema';
17+
/**
18+
* Export the DataSource to avoid TypeScript 4.2's complaint about
19+
* RepositoryMixin as it references `juggler.DataSource`
20+
*/
21+
export {DataSource as JugglerDataSource} from 'loopback-datasource-juggler';
1722
export * from './common-types';
1823
export * from './connectors';
1924
export * from './datasource';

0 commit comments

Comments
 (0)