Use section headers for shared types
This commit is contained in:
@ -45,19 +45,19 @@ Index a document. Adds a JSON document to the specified data stream or index and
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
interface IndexRequest<TDocument = unknown> extends <<shared-type-request-base, RequestBase>> {
|
||||
id?: <<shared-type-id, Id>>
|
||||
index: <<shared-type-index-name, IndexName>>
|
||||
if_primary_term?: <<shared-type-long, long>>
|
||||
if_seq_no?: <<shared-type-sequence-number, SequenceNumber>>
|
||||
op_type?: <<shared-type-op-type, OpType>>
|
||||
interface IndexRequest<TDocument = unknown> extends <<RequestBase>> {
|
||||
id?: <<Id>>
|
||||
index: <<IndexName>>
|
||||
if_primary_term?: <<long>>
|
||||
if_seq_no?: <<SequenceNumber>>
|
||||
op_type?: <<OpType>>
|
||||
pipeline?: string
|
||||
refresh?: <<shared-type-refresh, Refresh>>
|
||||
routing?: <<shared-type-routing, Routing>>
|
||||
timeout?: <<shared-type-duration, Duration>>
|
||||
version?: <<shared-type-version-number, VersionNumber>>
|
||||
version_type?: <<shared-type-version-type, VersionType>>
|
||||
wait_for_active_shards?: <<shared-type-wait-for-active-shards, WaitForActiveShards>>
|
||||
refresh?: <<Refresh>>
|
||||
routing?: <<Routing>>
|
||||
timeout?: <<Duration>>
|
||||
version?: <<VersionNumber>>
|
||||
version_type?: <<VersionType>>
|
||||
wait_for_active_shards?: <<WaitForActiveShards>>
|
||||
require_alias?: boolean
|
||||
document?: TDocument
|
||||
}
|
||||
@ -68,6 +68,6 @@ interface IndexRequest<TDocument = unknown> extends <<shared-type-request-base,
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
type IndexResponse = <<shared-type-write-response-base, WriteResponseBase>>
|
||||
type IndexResponse = <<WriteResponseBase>>
|
||||
----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user