File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -273,6 +273,14 @@ pub trait CompilerOptions {
273
273
/// Sets whether to enable experimental decorators.
274
274
fn set_experimental_decorators ( & mut self , _experimental_decorators : bool ) { }
275
275
276
+ /// Whether to emit decorator metadata.
277
+ fn emit_decorator_metadata ( & self ) -> Option < & bool > {
278
+ None
279
+ }
280
+
281
+ /// Sets whether to emit decorator metadata.
282
+ fn set_emit_decorator_metadata ( & mut self , _emit_decorator_metadata : bool ) { }
283
+
276
284
/// JSX.
277
285
fn jsx ( & self ) -> Option < & str > {
278
286
None
Original file line number Diff line number Diff line change @@ -114,6 +114,9 @@ pub struct CompilerOptionsSerde {
114
114
/// <https://www.typescriptlang.org/tsconfig/#experimentalDecorators>
115
115
pub experimental_decorators : Option < bool > ,
116
116
117
+ /// <https://www.typescriptlang.org/tsconfig/#emitDecoratorMetadata>
118
+ pub emit_decorator_metadata : Option < bool > ,
119
+
117
120
/// <https://www.typescriptlang.org/tsconfig/#jsx>
118
121
pub jsx : Option < String > ,
119
122
@@ -167,6 +170,14 @@ impl CompilerOptions for CompilerOptionsSerde {
167
170
self . experimental_decorators = Some ( experimental_decorators) ;
168
171
}
169
172
173
+ fn emit_decorator_metadata ( & self ) -> Option < & bool > {
174
+ self . emit_decorator_metadata . as_ref ( )
175
+ }
176
+
177
+ fn set_emit_decorator_metadata ( & mut self , emit_decorator_metadata : bool ) {
178
+ self . emit_decorator_metadata = Some ( emit_decorator_metadata) ;
179
+ }
180
+
170
181
fn jsx ( & self ) -> Option < & str > {
171
182
self . jsx . as_deref ( )
172
183
}
You can’t perform that action at this time.
0 commit comments