Skip to content

Commit 1192187

Browse files
Remove dangling references to typesWithBodyKey (#2821) (#2826)
This was removed for 9.0. (cherry picked from commit a86319b) Co-authored-by: Josh Mock <[email protected]>
1 parent 58ff4e2 commit 1192187

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

docs/reference/typescript.md

-10
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ The types are not 100% complete yet. Some APIs are missing (the newest ones, e.g
1313
The client is developed against the [latest](https://www.npmjs.com/package/typescript?activeTab=versions) version of TypeScript. Furthermore, unless you have set `skipLibCheck` to `true`, you should configure `esModuleInterop` to `true`.
1414
::::
1515

16-
17-
1816
## Example [_example]
1917

2018
```ts
@@ -74,18 +72,10 @@ async function run () {
7472
run().catch(console.log)
7573
```
7674

77-
7875
## Request & Response types [_request_response_types]
7976

8077
You can import the full TypeScript requests & responses definitions as it follows:
8178

8279
```ts
8380
import { estypes } from '@elastic/elasticsearch'
8481
```
85-
86-
If you need the legacy definitions with the body, you can do the following:
87-
88-
```ts
89-
import { estypesWithBody } from '@elastic/elasticsearch'
90-
```
91-

index.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import SniffingTransport from './lib/sniffingTransport'
88

99
export * from '@elastic/transport'
1010
export * as estypes from './lib/api/types'
11-
export * as estypesWithBody from './lib/api/typesWithBodyKey'
1211
export { Client, SniffingTransport }
1312
export type { ClientOptions, NodeOptions } from './lib/client'
1413
export * as helpers from './lib/helpers'

0 commit comments

Comments
 (0)