I am writing a script to assign network interfaces, however I noticed that the api documentation uses net[n] as the parameter. I confirmed that the api does take something like 'net4' when adding a 5th interface.
This does not seem possible with the current typing. Perhaps this could be covered with something like a template?
type netType = `net${number}`
type configObject = {
[netName: netType]: string
}
const config: configObject = {
'net2': 'test'
}
I am writing a script to assign network interfaces, however I noticed that the api documentation uses net[n] as the parameter. I confirmed that the api does take something like 'net4' when adding a 5th interface.
This does not seem possible with the current typing. Perhaps this could be covered with something like a template?