mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-30 17:04:20 +08:00
The Ports field is a map of string to _array_ of Ip/Port objects, as you can see in the docs: https://docs.docker.com/engine/api/v1.32/#operation/ContainerInspect As a result of this error type checks are not being run. e.g. Doing `container.inspect().NetworkSettings.Ports['test'][0].BadField` will compile without error, despite `BadField` to existing in the interface.