-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TS4022 Using RequestOptionsBase #77
Comments
Did this have a similar root cause as #76? Was it resolved by installing preview versions of autorest.typescript and ms-rest-js? Please feel free to reopen if this is still a problem. |
I've opened a request to fix issues like these in TypeScript by bringing declaration files to parity with language features. microsoft/TypeScript#35822 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
autorest output of file https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/iothub/resource-manager/Microsoft.Devices/stable/2018-04-01/iothub.json with following specifications:
typescript.azure-arm: true
typescript:
output-folder: ./lib/
license-header: MICROSOFT_MIT_NO_VERSION
add-credentials: true
package-name: microsoft-azure-devices-iothub-controlplane
input-file: ./src/2018-04-01/iothub.json
package-version: 2018.04.01.01
generate-metadata: true
fails on tsc. "Receiving TS4022 -- has or is using private name 'RequestOptionsBase'." Manually corrected by exporting type RequestOptionsBase. Looking to understand if this is user error and / or correctable.
Loading AutoRest core 'C:\Users\rkessler.autorest@microsoft.azure_autorest-core@2.0.4277\node_modules@microsoft.azure\autorest-core\dist' (2.0.4277)
Loading AutoRest extension '@microsoft.azure/autorest.typescript' (~2.0.12->2.0.176)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.1.23->2.1.23)
New to tech -- so guidance appreciated.
The text was updated successfully, but these errors were encountered: