* Emulate pre 2.4 metadata behavior of eliding null and undefined from unions without strictNullChecks * Accept baseline * Update comment * Update for second old baseline * Respect strict
8 lines
196 B
TypeScript
8 lines
196 B
TypeScript
// @experimentalDecorators: true
|
|
// @emitDecoratorMetadata: true
|
|
const dec = (obj: {}, prop: string) => undefined
|
|
|
|
class Foo {
|
|
@dec public foo: string | null;
|
|
@dec public bar: string;
|
|
} |