diff --git a/packages/osd-config-schema/src/types/object_type.ts b/packages/osd-config-schema/src/types/object_type.ts index 97865cb6a937..e544b4a8b6d6 100644 --- a/packages/osd-config-schema/src/types/object_type.ts +++ b/packages/osd-config-schema/src/types/object_type.ts @@ -59,7 +59,9 @@ type RequiredProperties = Pick< // this might not have perfect _rendering_ output, but it will be typed. export type ObjectResultType

= Readonly< { [K in keyof OptionalProperties

]?: TypeOf } & - { [K in keyof RequiredProperties

]: TypeOf } + { + [K in keyof RequiredProperties

]: TypeOf; + } >; type DefinedProperties = Pick< @@ -70,7 +72,9 @@ type DefinedProperties = Pick< >; type ExtendedProps

= Omit & - { [K in keyof DefinedProperties]: NP[K] }; + { + [K in keyof DefinedProperties]: NP[K]; + }; type ExtendedObjectType

= ObjectType< ExtendedProps diff --git a/src/plugins/dashboard/public/application/embeddable/viewport/dashboard_viewport.test.tsx b/src/plugins/dashboard/public/application/embeddable/viewport/dashboard_viewport.test.tsx index 7f4891f6db49..4c75f8b43b69 100644 --- a/src/plugins/dashboard/public/application/embeddable/viewport/dashboard_viewport.test.tsx +++ b/src/plugins/dashboard/public/application/embeddable/viewport/dashboard_viewport.test.tsx @@ -53,7 +53,10 @@ const ExitFullScreenButton = () =>

function getProps( props?: Partial -): { props: DashboardViewportProps; options: DashboardContainerOptions } { +): { + props: DashboardViewportProps; + options: DashboardContainerOptions; +} { const { setup, doStart } = embeddablePluginMock.createInstance(); setup.registerEmbeddableFactory( CONTACT_CARD_EMBEDDABLE, diff --git a/src/plugins/home/server/services/tutorials/lib/tutorials_registry_types.ts b/src/plugins/home/server/services/tutorials/lib/tutorials_registry_types.ts index a4f682afeb5f..f2eff2ffa431 100644 --- a/src/plugins/home/server/services/tutorials/lib/tutorials_registry_types.ts +++ b/src/plugins/home/server/services/tutorials/lib/tutorials_registry_types.ts @@ -123,5 +123,7 @@ export interface TutorialContext { export type TutorialProvider = (context: TutorialContext) => TutorialSchema; export type TutorialContextFactory = ( req: OpenSearchDashboardsRequest -) => { [key: string]: unknown }; +) => { + [key: string]: unknown; +}; export type ScopedTutorialContextFactory = (...args: any[]) => any; diff --git a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/step_index_pattern.test.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/step_index_pattern.test.tsx index 8af8a8bb5ccf..aea1959686cb 100644 --- a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/step_index_pattern.test.tsx +++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_index_pattern/step_index_pattern.test.tsx @@ -213,9 +213,9 @@ describe('StepIndexPattern', () => { // Ensure it works in the other code flow too (the other early return) // Provide `opensearch` so we do not auto append * and enter our other code flow - instance.onQueryChanged({ target: { value: 'opensearch' } } as React.ChangeEvent< - HTMLInputElement - >); + instance.onQueryChanged({ + target: { value: 'opensearch' }, + } as React.ChangeEvent); instance.lastQuery = 'o'; await new Promise((resolve) => process.nextTick(resolve)); expect(component.state('exactMatchedIndices')).toEqual([]); diff --git a/src/plugins/saved_objects/public/saved_object/saved_object.test.ts b/src/plugins/saved_objects/public/saved_object/saved_object.test.ts index 298ba920ca04..6cdfce8bf63b 100644 --- a/src/plugins/saved_objects/public/saved_object/saved_object.test.ts +++ b/src/plugins/saved_objects/public/saved_object/saved_object.test.ts @@ -136,9 +136,9 @@ describe('Saved Object', () => { return createInitializedSavedObject({ type: 'dashboard', id: 'myId' }).then( (savedObject) => { - stubSavedObjectsClientCreate({ id: 'myId' } as SimpleSavedObject< - SavedObjectAttributes - >); + stubSavedObjectsClientCreate({ + id: 'myId', + } as SimpleSavedObject); return savedObject.save({ confirmOverwrite: false }).then(() => { expect(startMock.overlays.openModal).not.toHaveBeenCalled(); diff --git a/src/plugins/vis_default_editor/public/components/controls/components/number_list/number_row.test.tsx b/src/plugins/vis_default_editor/public/components/controls/components/number_list/number_row.test.tsx index f66f0be1fb52..e5638684e1b9 100644 --- a/src/plugins/vis_default_editor/public/components/controls/components/number_list/number_row.test.tsx +++ b/src/plugins/vis_default_editor/public/components/controls/components/number_list/number_row.test.tsx @@ -73,9 +73,9 @@ describe('NumberRow', () => { test('should call onChange', () => { const comp = shallow(); - comp.find('EuiFieldNumber').prop('onChange')!({ target: { value: '5' } } as React.ChangeEvent< - HTMLInputElement - >); + comp.find('EuiFieldNumber').prop('onChange')!({ + target: { value: '5' }, + } as React.ChangeEvent); expect(defaultProps.onChange).lastCalledWith({ id: defaultProps.model.id, value: '5' }); });