mirror of
https://github.com/grafana/grafana.git
synced 2024-11-24 09:50:29 -06:00
Elasticsearch: Remove any from public/app/plugins/datasource/elasticsearch/components/AddRemove.test.tsx (#54232)
Co-authored-by: gitstart <gitstart@users.noreply.github.com> Co-authored-by: gitstart <gitstart@gitstart.com> Co-authored-by: Nitesh Singh <nitesh.singh@gitstart.dev> Co-authored-by: Júlio Piubello da Silva Cabral <julio.piubello@gitstart.dev> Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br> Co-authored-by: juliopiubello <juliopiubellow@gmail.com>
This commit is contained in:
parent
15e19cef95
commit
468597b687
@ -6343,9 +6343,6 @@ exports[`better eslint`] = {
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"],
|
||||
[0, 0, 0, "Do not use any type assertions.", "1"]
|
||||
],
|
||||
"public/app/plugins/datasource/elasticsearch/components/AddRemove.test.tsx:5381": [
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "0"]
|
||||
],
|
||||
"public/app/plugins/datasource/elasticsearch/components/AddRemove.tsx:5381": [
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "0"]
|
||||
],
|
||||
|
@ -5,7 +5,7 @@ import { AddRemove } from './AddRemove';
|
||||
|
||||
const noop = () => {};
|
||||
|
||||
const TestComponent = ({ items }: { items: any[] }) => (
|
||||
const TestComponent = ({ items }: { items: string[] }) => (
|
||||
<>
|
||||
{items.map((_, index) => (
|
||||
<AddRemove key={index} elements={items} index={index} onAdd={noop} onRemove={noop} />
|
||||
|
Loading…
Reference in New Issue
Block a user