Skip to content

Commit 11141ae

Browse files
committed
fix SavedObjectMigrationMap type
1 parent f891a01 commit 11141ae

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

docs/development/plugins/data/server/kibana-plugin-plugins-data-server.iindexpattern.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@ export interface IIndexPattern
2121
| [title](./kibana-plugin-plugins-data-server.iindexpattern.title.md) | <code>string</code> | |
2222
| [type](./kibana-plugin-plugins-data-server.iindexpattern.type.md) | <code>string</code> | |
2323

24+
## Methods
25+
26+
| Method | Description |
27+
| --- | --- |
28+
| [getTimeField()](./kibana-plugin-plugins-data-server.iindexpattern.gettimefield.md) | |
29+

src/core/server/saved_objects/migrations/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,5 @@ export interface SavedObjectMigrationContext {
8888
* @public
8989
*/
9090
export interface SavedObjectMigrationMap {
91-
[version: string]: SavedObjectMigrationFn;
91+
[version: string]: SavedObjectMigrationFn<any, any>;
9292
}

src/core/server/server.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@ export type SavedObjectMigrationFn<InputAttributes = unknown, MigratedAttributes
17351735
// @public
17361736
export interface SavedObjectMigrationMap {
17371737
// (undocumented)
1738-
[version: string]: SavedObjectMigrationFn;
1738+
[version: string]: SavedObjectMigrationFn<any, any>;
17391739
}
17401740

17411741
// @public

0 commit comments

Comments
 (0)