Use const for symbol when indexing.
Use const for symbol when indexing.

* "Type 'symbol' cannot be used as an index type." error is
produced if sym is not const (tsc version 3.1.4).

Microsoft/TypeScript-Handbook