mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
Saved objects: improve typesafety (#140099)
* Remove SavedObjectAttributes from examples * Remove SavedObjectAttributes from dev_docs * Deprecate SavedObjectAttributes type * Remove SavedObjectAttributes from kibana_usage_collection plugin * Remove low hanging SavedObjectAttributes in security_solution * Remove low hanging SavedObjectAttributes in upgrade_assistant * Remove low hanging SavedObjectAttributes in lens * Stricter types for SavedObjectsServiceSetup.registerType * Review feedback * Some more low hanging fruit Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
c9628fc0be
commit
191bfbc97e
28 changed files with 47 additions and 89 deletions
|
@ -5,12 +5,9 @@
|
|||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import type { SavedObjectAttributes } from '@kbn/core/types';
|
||||
|
||||
export const BOOK_SAVED_OBJECT = 'book';
|
||||
|
||||
export interface BookSavedObjectAttributes extends SavedObjectAttributes {
|
||||
export interface BookSavedObjectAttributes {
|
||||
title: string;
|
||||
author?: string;
|
||||
readIt?: boolean;
|
||||
|
|
|
@ -6,9 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import type { SavedObjectAttributes } from '@kbn/core/types';
|
||||
|
||||
export interface TodoSavedObjectAttributes extends SavedObjectAttributes {
|
||||
export interface TodoSavedObjectAttributes {
|
||||
task: string;
|
||||
icon?: string;
|
||||
title?: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue