Lukáš Lánský
Follow

blog.pulumi.com/advanced-types

"Put together, the Unwrap<T> itself is effectively a recursively defined structural pattern matching type. You can see it reference itself once you walk into UnwrappedArray<T> and UnwrappedObject<T> types. As it recurses, it matches the type it has and then ‘peels away’ the wrappings that have been caused by Promise<T> and Output<T>. As it hits Arrays and Objects, it dives deeper, unwrapping along the way."

Sign in to participate in the conversation
Mastodon

social.lansky.name is one server in the network