Skip to content

Commit

Permalink
feat: add copy context field for prepared copy item type (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
flops committed Mar 27, 2024
1 parent 280a69d commit fad573e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/OverlayControls/OverlayControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ type PreparedCopyItemOptionsArg = Pick<ConfigItem, 'data' | 'type' | 'defaults'
};
};

export type PreparedCopyItemOptions = PreparedCopyItemOptionsArg;
export type PreparedCopyItemOptions<C extends object = {}> = PreparedCopyItemOptionsArg & {
copyContext?: C;
};

type DashKitCtx = React.Context<{
context: Record<string, any>;
Expand Down

0 comments on commit fad573e

Please sign in to comment.