Skip to content

Commit 8f48c88

Browse files
committed
Enable ErasableSyntaxOnly option
1 parent 04311a9 commit 8f48c88

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/packages/pongo/src/mongo/mongoDb.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ import type {
1212
import { Collection } from './mongoCollection';
1313

1414
export class Db {
15-
constructor(private pongoDb: PongoDb) {}
15+
private pongoDb: PongoDb;
16+
constructor(pongoDb: PongoDb) {
17+
this.pongoDb = pongoDb;
18+
}
1619

1720
get databaseName(): string {
1821
return this.pongoDb.databaseName;

src/tsconfig.shared.json

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
// "types": [], /* Type declaration files to be included in compilation. */
5656
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
5757
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
58+
"erasableSyntaxOnly": true,
5859
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
5960
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
6061
"resolveJsonModule": true /* Enable importing .json files */,

0 commit comments

Comments
 (0)