no-rest-library-interfaces
@azure-tools/typespec-azure-core/no-rest-library-interfacesResource interfaces from the TypeSpec.Rest.Resource library are incompatible with Azure.Core. Use the Azure.Core resource operation patterns instead.
โ Incorrect
Section titled โโ IncorrectโExtending from TypeSpec.Rest.Resource.ResourceOperations:
interface Widgets extends TypeSpec.Rest.Resource.ResourceOperations<Widget, Foundations.ErrorResponse> {}โ Correct
Section titled โโ CorrectโDefine a custom interface using Azure.Core operations:
interface MyResourceOperations<TResource extends TypeSpec.Reflection.Model> { read is ResourceRead<TResource>;}
interface Widgets extends MyResourceOperations<Widget> {}