Skip to content

Commit

Permalink
chore: add TODO comment for raw context items
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeIlLeone committed Oct 23, 2024
1 parent 29a51fb commit d3f9924
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/types/coremods/contextMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type WithRawChildren<T> = T extends { children: React.ReactNode }
? Omit<T, "children"> & { children: RawContextItem | RawContextItem[] }
: T;

// TODO: Type is not correctly extending the props of the component based on the generic T
export type RawContextItem<
T extends
ContextMenuComponents[keyof ContextMenuComponents] = ContextMenuComponents[keyof ContextMenuComponents],
Expand Down

0 comments on commit d3f9924

Please sign in to comment.