ArticCon 2022 (continued)
Applying our schema
And now when we declare our topography we can actually enforce a type
readonly topo: Topo = { // note the :Topo here, that enforces the type
infra: {
subNets: {
app: {
cidr: '10.92.0.0/22',
gateway: '10.92.0.1',
},
db: {
cidr: '10.92.4.0/24',
gateway: '10.92.4.1',
},
},
},
management: {
subNets: {
[snip]