Skip to content

Commit

Permalink
fix SavedObjectMigrationMap type (elastic#65569)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed May 7, 2020
1 parent 9734daf commit 3f3d5f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ export interface IIndexPattern
| [title](./kibana-plugin-plugins-data-server.iindexpattern.title.md) | <code>string</code> | |
| [type](./kibana-plugin-plugins-data-server.iindexpattern.type.md) | <code>string</code> | |

## Methods

| Method | Description |
| --- | --- |
| [getTimeField()](./kibana-plugin-plugins-data-server.iindexpattern.gettimefield.md) | |

2 changes: 1 addition & 1 deletion src/core/server/saved_objects/migrations/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@ export interface SavedObjectMigrationContext {
* @public
*/
export interface SavedObjectMigrationMap {
[version: string]: SavedObjectMigrationFn;
[version: string]: SavedObjectMigrationFn<any, any>;
}
2 changes: 1 addition & 1 deletion src/core/server/server.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1735,7 +1735,7 @@ export type SavedObjectMigrationFn<InputAttributes = unknown, MigratedAttributes
// @public
export interface SavedObjectMigrationMap {
// (undocumented)
[version: string]: SavedObjectMigrationFn;
[version: string]: SavedObjectMigrationFn<any, any>;
}

// @public
Expand Down

0 comments on commit 3f3d5f9

Please sign in to comment.