-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DX] Bump TS version to v4.1 #83397
[DX] Bump TS version to v4.1 #83397
Changes from 16 commits
70eade7
41b63e8
c64df93
81d4dcd
e25f7d5
6bc2224
fad9a16
423374f
3987a37
8beade8
1d23852
594ced8
3de48db
138b222
46e689f
4c212f6
b6a8e15
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,7 +171,7 @@ export abstract class Container< | |
return this.children[id] as TEmbeddable; | ||
} | ||
|
||
return new Promise((resolve, reject) => { | ||
return new Promise<TEmbeddable>((resolve, reject) => { | ||
const subscription = merge(this.getOutput$(), this.getInput$()).subscribe(() => { | ||
if (this.output.embeddableLoaded[id]) { | ||
subscription.unsubscribe(); | ||
|
@@ -181,6 +181,7 @@ export abstract class Container< | |
// If we hit this, the panel was removed before the embeddable finished loading. | ||
if (this.input.panels[id] === undefined) { | ||
subscription.unsubscribe(); | ||
// @ts-expect-error undefined in not assignable to TEmbeddable | ErrorEmbeddable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we need either to change There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe reject(new Error('The panel was removed before the embeddable finished loading.')); /cc @stacey-gammon |
||
resolve(undefined); | ||
} | ||
}); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,7 @@ export class ContactCardEmbeddableFactory | |
<ContactCardInitializer | ||
onCancel={() => { | ||
modalSession.close(); | ||
// @ts-expect-error | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe reject(new Error('Cancelled!')); |
||
resolve(undefined); | ||
}} | ||
onCreate={(input: { firstName: string; lastName?: string }) => { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,7 @@ class CodeEditor extends Component< | |
|
||
public render() { | ||
const { | ||
name, | ||
id, | ||
label, | ||
isReadOnly, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,7 @@ class FieldText extends Component< | |
|
||
public render() { | ||
const { | ||
name, | ||
id, | ||
required, | ||
label, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,7 @@ class MultiFieldText extends Component< | |
|
||
public render() { | ||
const { | ||
name, | ||
id, | ||
required, | ||
label, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,7 @@ class FieldPassword extends Component< | |
|
||
public render() { | ||
const { | ||
name, | ||
id, | ||
required, | ||
label, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elastic/kibana-app-services would it possible to fix the problem #77678 (comment), please ?