Type Alias NginxBlockTypesWithContext<WithThisContext>

NginxBlockTypesWithContext: UnionOmit<
    Values<
        {
            [Key in NginxBlockType as Extract<RawNginxBlock, { type: Key }> extends infer Block
                ? "context" extends keyof Block
                    ? Block["context"] extends any[]
                        ? WithThisContext extends ArrayElement<Block["context"]>
                            ? Key
                            : never
                        : Key
                    : Key
                : never]: Extract<RawNginxBlock, { type: Key }>
        },
    >,
    "context",
>

Gets all block types that have the given context.

Type Parameters