remove unnecessary global typings (#117408)

* remove unnecessary global typings

* clanup index.ts

* put storybook typings back
This commit is contained in:
Mikhail Shustov 2021-11-04 16:59:14 +01:00 committed by GitHub
parent d38fb03820
commit 93197414aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 15 additions and 49 deletions

View file

@ -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
View file

@ -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[];
}

View file

@ -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;

View file

@ -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;
}

View file

@ -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';