mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
12 lines
209 B
TypeScript
12 lines
209 B
TypeScript
interface Flags { [name: string]: boolean };
|
|
let flags: Flags;
|
|
flags.b;
|
|
flags.f;
|
|
flags.isNotNecessarilyNeverFalse;
|
|
flags['this is fine'];
|
|
|
|
interface Empty { }
|
|
let empty: Empty;
|
|
empty.nope;
|
|
empty["that's ok"];
|