Vue3 composition-api typescript props parameter in setup() what is the right type?

Hello,
I do not understand why I receive error:‘No overload matches this call.’ in the setup method here

…everything work fine I just have this annoying syntax error on the IDE

.
.

interface LocalProps {
  msg: {
    msg1: string;
    msg2: string;
  };
}

export default defineComponent({
  name: "HelloWorld",
  props: {
    msg: {
      type: Object as PropType<LocalProps>,
      required: true,
    },
  },
  setup: (props: Readonly<LocalProps>) => {
    return { msg1: props.msg.msg1, msg2: props.msg.msg2 };
.
.
.

codesandbox is here

thank you
Domenico

You do not need wrap the type.

  props: {
    msg: {
      type: Object as LocalProps,
      required: true,
    },
  },
  setup: ({msg}) => {
    return { msg1: msg.msg1, msg2: msg.msg2 };

thank you Thy3634
It worked now but I think “type: Object as PropType<LocalProps>,” should be there otherwise I get an other kind of error.

Regards
Domenico