Skip to content

Commit

Permalink
Enable useDefineForClassFields for ECMA fields #10706
Browse files Browse the repository at this point in the history
And faster build time
  • Loading branch information
PowerKiKi committed Oct 3, 2024
1 parent c9faaa2 commit f69074d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions projects/natural/src/lib/classes/abstract-detail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ export class NaturalAbstractDetail<
*
* Other keys, if present, are whatever is returned from route resolvers as-is.
*/
public override data: Data<TService, ExtraResolve> = {
model: this.service.getDefaultForServer(),
} as Data<TService, ExtraResolve>;
public override data: Data<TService, ExtraResolve>;

/**
* Form that manages the data from the controller
Expand Down Expand Up @@ -98,6 +96,10 @@ export class NaturalAbstractDetail<
public readonly service: TService,
) {
super();

this.data = {
model: this.service.getDefaultForServer(),
} as Data<TService, ExtraResolve>;
}

/**
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"@ecodev/natural": ["projects/natural/src/public-api"],
"@ecodev/natural-editor": ["projects/natural-editor/src/public-api"]
},
"noImplicitOverride": true,
"useDefineForClassFields": false
"noImplicitOverride": true
},
"angularCompilerOptions": {
"strictInjectionParameters": true,
Expand Down

0 comments on commit f69074d

Please sign in to comment.