Skip to content

Commit

Permalink
make emotion typing global
Browse files Browse the repository at this point in the history
  • Loading branch information
eokoneyo committed Dec 5, 2024
1 parent 06b774e commit f7a3a91
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 30 deletions.
16 changes: 16 additions & 0 deletions typings/emotion.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the "Elastic License
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
* Public License v 1"; you may not use this file except in compliance with, at
* your election, the "Elastic License 2.0", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import '@emotion/react';
import type { UseEuiTheme } from '@elastic/eui';

declare module '@emotion/react' {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface Theme extends UseEuiTheme {}
}
14 changes: 0 additions & 14 deletions x-pack/packages/ml/data_grid/emotion.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion x-pack/packages/ml/data_grid/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"include": [
"**/*.ts",
"**/*.tsx",
"./emotion.d.ts", // Emotion EUI theme typing
"../../../../typings/emotion.d.ts"
],
"exclude": [
"target/**/*"
Expand Down
14 changes: 0 additions & 14 deletions x-pack/plugins/osquery/emotion.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion x-pack/plugins/osquery/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// ECS and Osquery schema files
"public/common/schemas/*/**.json",
// Emotion theme typing
"./emotion.d.ts"
"../../../typings/emotion.d.ts"
],
"kbn_references": [
"@kbn/core",
Expand Down

0 comments on commit f7a3a91

Please sign in to comment.