Skip to content

Missing Object Props Error is not enough pretty. #64

@myagizmaktav

Description

@myagizmaktav

Describe the bug
When writing code in React, I often need to transfer props to the parent component. However, I sometimes forget which props need to be omitted when passing them to the parent component.

Expected behavior
I expect to have a clear and convenient way of determining which props should be omitted when passing them to the parent component.

LanguagePicker.tsx

type languagePickerProps = {
  pickerProps?: DropDownPickerProps<Object>;

  // Omit<
  //   DropDownPickerProps<Object>,
  //   "multiple" | "setValue" | "value" | "items" | "open" | "setOpen"
  // >;
};

export const LanguagePicker = (props: languagePickerProps) => {


Footer.tsx

  <LanguagePicker
          pickerProps={{
            style: {
              backgroundColor: "red",
            },
          }}
        />

Screenshots
image

It needs to be written in code format:
image

Please provide more context or additional information if necessary to help identify and resolve the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions