Skip to content

Commit 26d916c

Browse files
authored
[Document Translator] Fix typedef file name (Azure#14985)
* Fix typedef file name * update package * update eslint rules
1 parent ef49f53 commit 26d916c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

sdk/documenttranslator/ai-document-translator-rest/.eslintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"plugins": ["@azure/azure-sdk"],
33
"extends": ["plugin:@azure/azure-sdk/azure-sdk-base"],
44
"rules": {
5-
"@azure/azure-sdk/ts-modules-only-named": "warn"
5+
"@azure/azure-sdk/ts-modules-only-named": "warn",
6+
"@azure/azure-sdk/ts-apiextractor-json-types": "warn",
7+
"@azure/azure-sdk/ts-package-json-types": "warn"
68
}
79
}

sdk/documenttranslator/ai-document-translator-rest/api-extractor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dtsRollup": {
1212
"enabled": true,
1313
"untrimmedFilePath": "",
14-
"publicTrimmedFilePath": "./types/ai-document-translator-rest.d.ts"
14+
"publicTrimmedFilePath": "./types/ai-document-translator.d.ts"
1515
},
1616
"messages": {
1717
"tsdocMessageReporting": {

sdk/documenttranslator/ai-document-translator-rest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"license": "MIT",
1616
"main": "./dist/index.js",
1717
"module": "./dist-esm/src/index.js",
18-
"types": "./types/ai-document-translator-rest.d.ts",
18+
"types": "./types/ai-document-translator.d.ts",
1919
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/documenttranslator/ai-document-translator/README.md",
2020
"repository": "github:Azure/azure-sdk-for-js",
2121
"bugs": {

0 commit comments

Comments
 (0)