Skip to content

[I] VisibilityProvider

A context-specific provider for visibility information that applies when parameter or return type visibility constraints are not explicitly specified. Visibility providers are provided by libraries that define implied visibility semantics, such as @typespec/http.

If you are not working in a protocol that has specific visibility semantics, you can use the EmptyVisibilityProvider from this package as a default provider. It will consider all properties visible by default unless otherwise explicitly specified.

Methods

parameters()

parameters(program, operation): VisibilityFilter

Parameters

ParameterType
programProgram
operationOperation

Returns

VisibilityFilter


returnType()

returnType(program, operation): VisibilityFilter

Parameters

ParameterType
programProgram
operationOperation

Returns

VisibilityFilter