We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab093a3 commit 7e06bfeCopy full SHA for 7e06bfe
src/storage.ts
@@ -1,6 +1,13 @@
1
import { MetadataStorage } from './MetadataStorage';
2
+import { getGlobal } from './utils';
3
+
4
+const globalScope = getGlobal();
5
6
/**
7
* Default metadata storage is used as singleton and can be used to storage all metadatas.
8
*/
-export const defaultMetadataStorage = new MetadataStorage();
9
+if (!globalScope.classTransformerMetadataStorage) {
10
+ globalScope.classTransformerMetadataStorage = new MetadataStorage();
11
+}
12
13
+export const defaultMetadataStorage = globalScope.classTransformerMetadataStorage;
0 commit comments