We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e371eac commit 577feebCopy full SHA for 577feeb
1 file changed
libs/core/src/lib/utils/angular-react/metadata.ts
@@ -5,18 +5,14 @@ const KEY = 'angularReact';
5
6
export const setAngularReactMetadata = (
7
componentDef: {
8
- data: {
+ readonly data: {
9
[kind: string]: any;
10
};
11
},
12
metadata: AngularReactMetadata
13
): void => {
14
if (componentDef.data) {
15
componentDef.data[KEY] = metadata;
16
- } else {
17
- componentDef.data = {
18
- [KEY]: metadata
19
- }
20
}
21
22
0 commit comments