Co-authored-by: spalger <spalger@users.noreply.github.com> # Conflicts: # x-pack/plugins/transform/public/app/sections/transform_management/components/transform_list/expanded_row.test.tsx # x-pack/typings/index.d.ts
35 lines
907 B
TypeScript
35 lines
907 B
TypeScript
/*
|
|
* 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;
|
|
// eslint-disable-next-line import/no-default-export
|
|
export default template;
|
|
}
|
|
|
|
declare module '*.png' {
|
|
const content: string;
|
|
// eslint-disable-next-line import/no-default-export
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.svg' {
|
|
const content: string;
|
|
// eslint-disable-next-line import/no-default-export
|
|
export default content;
|
|
}
|
|
|
|
type MethodKeysOf<T> = {
|
|
[K in keyof T]: T[K] extends (...args: any[]) => any ? K : never;
|
|
}[keyof T];
|
|
|
|
type PublicMethodsOf<T> = Pick<T, MethodKeysOf<T>>;
|
|
|
|
declare module 'axios/lib/adapters/xhr';
|
|
|
|
type Writable<T> = {
|
|
-readonly [K in keyof T]: T[K];
|
|
};
|