mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
remove unnecessary global typings (#117408)
* remove unnecessary global typings * clanup index.ts * put storybook typings back
This commit is contained in:
parent
d38fb03820
commit
93197414aa
7 changed files with 15 additions and 49 deletions
4
typings/@elastic/eui/index.d.ts
vendored
4
typings/@elastic/eui/index.d.ts
vendored
|
@ -11,7 +11,3 @@
|
|||
declare module '@elastic/eui/lib/services' {
|
||||
export const RIGHT_ALIGNMENT: any;
|
||||
}
|
||||
|
||||
declare module '@elastic/eui/lib/services/format' {
|
||||
export const dateFormatAliases: any;
|
||||
}
|
||||
|
|
12
typings/accept.d.ts
vendored
12
typings/accept.d.ts
vendored
|
@ -1,12 +0,0 @@
|
|||
/*
|
||||
* 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 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 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
declare module 'accept' {
|
||||
// @types/accept does not include the `preferences` argument so we override the type to include it
|
||||
export function encodings(encodingHeader?: string, preferences?: string[]): string[];
|
||||
}
|
11
typings/global_fetch.d.ts
vendored
11
typings/global_fetch.d.ts
vendored
|
@ -1,11 +0,0 @@
|
|||
/*
|
||||
* 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 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 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
// This type needs to still exist due to apollo-link-http-common hasn't yet updated
|
||||
// it's usage (https://github.com/apollographql/apollo-link/issues/1131)
|
||||
declare type GlobalFetch = WindowOrWorkerGlobalScope;
|
12
typings/js_levenshtein.d.ts
vendored
12
typings/js_levenshtein.d.ts
vendored
|
@ -1,12 +0,0 @@
|
|||
/*
|
||||
* 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 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 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
declare module 'js-levenshtein' {
|
||||
const levenshtein: (a: string, b: string) => number;
|
||||
export = levenshtein;
|
||||
}
|
9
typings/react_vis.d.ts
vendored
9
typings/react_vis.d.ts
vendored
|
@ -1,9 +0,0 @@
|
|||
/*
|
||||
* 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 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 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
declare module 'react-vis';
|
Loading…
Add table
Add a link
Reference in a new issue