mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
Adding PagerDuty icon to connectors cards (#60805)
* adding PagerDuty icon to connectors cards * Fix jest * remove unnecessary global typings from canvas and sync global typings in xpack with oss Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com> Co-authored-by: spalger <spalger@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
477ce93d17
commit
7d97ead26e
7 changed files with 54 additions and 17 deletions
25
typings/index.d.ts
vendored
25
typings/index.d.ts
vendored
|
@ -23,6 +23,27 @@ declare module '*.html' {
|
|||
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;
|
||||
}
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
type MethodKeysOf<T> = {
|
||||
[K in keyof T]: T[K] extends (...args: any[]) => any ? K : never;
|
||||
}[keyof T];
|
||||
|
@ -37,3 +58,7 @@ type DeeplyMockedKeys<T> = {
|
|||
: DeeplyMockedKeys<T[P]>;
|
||||
} &
|
||||
T;
|
||||
|
||||
type Writable<T> = {
|
||||
-readonly [K in keyof T]: T[K];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue