Skip to content

Commit

Permalink
Suppress safe generic type assertions, ref #211878 (#230435)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 authored Oct 3, 2024
1 parent 1b2a417 commit b0d688c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ export class ListSettingWidget<TListDataItem extends IListDataItem> extends Abst
}

protected getEmptyItem(): TListDataItem {
// eslint-disable-next-line local/code-no-dangerous-type-assertions
return {
value: {
type: 'string',
Expand Down Expand Up @@ -624,6 +625,7 @@ export class ListSettingWidget<TListDataItem extends IListDataItem> extends Abst

const updatedInputBoxItem = (): TListDataItem => {
const inputBox = valueInput as InputBox;
// eslint-disable-next-line local/code-no-dangerous-type-assertions
return {
value: {
type: 'string',
Expand All @@ -633,6 +635,7 @@ export class ListSettingWidget<TListDataItem extends IListDataItem> extends Abst
} as TListDataItem;
};
const updatedSelectBoxItem = (selectedValue: string): TListDataItem => {
// eslint-disable-next-line local/code-no-dangerous-type-assertions
return {
value: {
type: 'enum',
Expand Down

0 comments on commit b0d688c

Please sign in to comment.