Skip to content

Commit

Permalink
Add destinationId? to SavedObjectsImportConflictError type
Browse files Browse the repository at this point in the history
The implementation already included this field in some cases when
using this as a return type, for some reason the type checker did
not prohibit that though.
  • Loading branch information
jportner committed May 26, 2020
1 parent 2d84ae2 commit 7954483
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [SavedObjectsImportConflictError](./kibana-plugin-core-public.savedobjectsimportconflicterror.md) &gt; [destinationId](./kibana-plugin-core-public.savedobjectsimportconflicterror.destinationid.md)

## SavedObjectsImportConflictError.destinationId property

<b>Signature:</b>

```typescript
destinationId?: string;
```
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ export interface SavedObjectsImportConflictError

| Property | Type | Description |
| --- | --- | --- |
| [destinationId](./kibana-plugin-core-public.savedobjectsimportconflicterror.destinationid.md) | <code>string</code> | |
| [type](./kibana-plugin-core-public.savedobjectsimportconflicterror.type.md) | <code>'conflict'</code> | |

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-server](./kibana-plugin-core-server.md) &gt; [SavedObjectsImportConflictError](./kibana-plugin-core-server.savedobjectsimportconflicterror.md) &gt; [destinationId](./kibana-plugin-core-server.savedobjectsimportconflicterror.destinationid.md)

## SavedObjectsImportConflictError.destinationId property

<b>Signature:</b>

```typescript
destinationId?: string;
```
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ export interface SavedObjectsImportConflictError

| Property | Type | Description |
| --- | --- | --- |
| [destinationId](./kibana-plugin-core-server.savedobjectsimportconflicterror.destinationid.md) | <code>string</code> | |
| [type](./kibana-plugin-core-server.savedobjectsimportconflicterror.type.md) | <code>'conflict'</code> | |

2 changes: 2 additions & 0 deletions src/core/public/public.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,8 @@ export interface SavedObjectsImportAmbiguousConflictError {

// @public
export interface SavedObjectsImportConflictError {
// (undocumented)
destinationId?: string;
// (undocumented)
type: 'conflict';
}
Expand Down
1 change: 1 addition & 0 deletions src/core/server/saved_objects/import/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export interface SavedObjectsImportRetry {
*/
export interface SavedObjectsImportConflictError {
type: 'conflict';
destinationId?: string;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions src/core/server/server.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2067,6 +2067,8 @@ export interface SavedObjectsImportAmbiguousConflictError {

// @public
export interface SavedObjectsImportConflictError {
// (undocumented)
destinationId?: string;
// (undocumented)
type: 'conflict';
}
Expand Down

0 comments on commit 7954483

Please sign in to comment.