Skip to content

[F] getReturnTypeVisibilityFilter

function getReturnTypeVisibilityFilter(
program,
operation,
defaultProvider): VisibilityFilter

Get the visibility filter that should apply to the return type of the given operation, or undefined if no return type visibility is set.

Parameters

ParameterTypeDescription
programProgramthe Program in which the operation is defined
operationOperationthe Operation to get the return type visibility filter for
defaultProviderVisibilityProvidera provider for visibility filters that apply when no visibility constraints are explicitly set. Defaults to an empty provider that returns an empty filter if not provided.

Returns

VisibilityFilter

a visibility filter for the return type of the operation, or undefined if no return type visibility is set