This message was deleted.
# general
s
This message was deleted.
l
something is weird with the quoting 🙂
w
Does this work:
Copy code
export let datomicSubnets = [
    datomicStorageStack.outputs.apply(o => o["Subnet0"]),
    datomicStorageStack.outputs.apply(o => o["Subnet1"]),
    datomicStorageStack.outputs.apply(o => o["Subnet1"]),
];
That type
Input<Input<string>>[]
is very odd though - looks like that's probably a bug in the implementation of
Network
? (There are two layers of
Input
around
string
, but none around the
[]
as is normal)
@lemon-spoon-91807 Do you know if that type is intentional?
l
@white-balloon-205, this is because we have code that enumerates the subnets using .Length
w
But then why are there two `Input`s here?
f
@white-balloon-205’s solution worked.
l
that part makes no sense
it should either be:
Input<string>[]
or
Input<Input<string>[]>
.
the latter would not work for our needs though because we do resource construction based on the array length.
w
Right - and sounds like it needs to be the former due the the enumeration of subnets.
@white-balloon-205’s solution worked.
Great.
l
i will fix this up in my PR as well
the Input<Input> issue