2019-02-07 14:37:50 +01:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
declare module '*.html' {
|
|
|
|
const template: string;
|
2019-04-05 20:14:26 +02:00
|
|
|
// eslint-disable-next-line import/no-default-export
|
2019-02-07 14:37:50 +01:00
|
|
|
export default template;
|
|
|
|
}
|
2019-06-07 17:07:07 +02:00
|
|
|
|
|
|
|
declare module 'lodash/internal/toPath' {
|
|
|
|
function toPath(value: string | string[]): string[];
|
|
|
|
export = toPath;
|
|
|
|
}
|
|
|
|
|
|
|
|
type MethodKeysOf<T> = {
|
2019-07-03 22:00:44 +02:00
|
|
|
[K in keyof T]: T[K] extends (...args: any[]) => any ? K : never;
|
2019-06-07 17:07:07 +02:00
|
|
|
}[keyof T];
|
|
|
|
|
|
|
|
type PublicMethodsOf<T> = Pick<T, MethodKeysOf<T>>;
|
2019-06-14 06:45:16 +02:00
|
|
|
|
|
|
|
declare module 'axios/lib/adapters/xhr';
|
2019-07-01 19:54:34 +02:00
|
|
|
|
2019-11-19 15:00:43 +01:00
|
|
|
type Writable<T> = {
|
|
|
|
-readonly [K in keyof T]: T[K];
|
|
|
|
};
|
|
|
|
|
2019-07-02 13:19:47 +02:00
|
|
|
// 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;
|
|
|
|
}
|