Skip to content

Commit

Permalink
CreateTemplatePartModal: replace ts-ignore with ts-expect-error (#67709)
Browse files Browse the repository at this point in the history
Co-authored-by: gigitux <[email protected]>
Co-authored-by: ciampo <[email protected]>
  • Loading branch information
3 people authored Dec 7, 2024
1 parent 72417c3 commit df98e37
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
symbolFilled as symbolFilledIcon,
} from '@wordpress/icons';
import { store as noticesStore } from '@wordpress/notices';
// @ts-ignore
// @ts-expect-error serialize is not typed
import { serialize } from '@wordpress/blocks';

/**
Expand Down Expand Up @@ -64,7 +64,7 @@ export default function CreateTemplatePartModal( {
} & CreateTemplatePartModalContentsProps ) {
const defaultModalTitle = useSelect(
( select ) =>
// @ts-ignore
// @ts-expect-error getPostType is not typed with 'wp_template_part' as argument.
select( coreStore ).getPostType( 'wp_template_part' )?.labels
?.add_new_item,
[]
Expand All @@ -77,7 +77,6 @@ export default function CreateTemplatePartModal( {
focusOnMount="firstContentElement"
size="medium"
>
{ /* @ts-ignore */ }
<CreateTemplatePartModalContents { ...restProps } />
</Modal>
);
Expand Down

0 comments on commit df98e37

Please sign in to comment.