diff --git a/x-pack/legacy/plugins/apm/typings/global_types.d.ts b/x-pack/legacy/plugins/apm/typings/global_types.d.ts deleted file mode 100644 index fdc9c38897c6..000000000000 --- a/x-pack/legacy/plugins/apm/typings/global_types.d.ts +++ /dev/null @@ -1,14 +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; - * you may not use this file except in compliance with the Elastic License. - */ - -// allow JSON files to be imported directly without lint errors -// see: https://github.com/palantir/tslint/issues/1264#issuecomment-228433367 -// and: https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#arbitrary-expressions-are-forbidden-in-export-assignments-in-ambient-contexts -declare module '*.json' { - const json: any; - // eslint-disable-next-line import/no-default-export - export default json; -} diff --git a/x-pack/typings/index.d.ts b/x-pack/typings/index.d.ts index 181bb8788c46..66006f66ccab 100644 --- a/x-pack/typings/index.d.ts +++ b/x-pack/typings/index.d.ts @@ -24,3 +24,12 @@ type PublicMethodsOf = Pick>; declare module 'axios/lib/adapters/xhr'; type MockedKeys = { [P in keyof T]: jest.Mocked }; + +// allow JSON files to be imported directly without lint errors +// see: https://github.com/palantir/tslint/issues/1264#issuecomment-228433367 +// and: https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#arbitrary-expressions-are-forbidden-in-export-assignments-in-ambient-contexts +declare module '*.json' { + const json: any; + // eslint-disable-next-line import/no-default-export + export default json; +}