@e-llm-studio/instant-learning 0.0.66 → 0.0.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,13 @@ export type ModeConfig = {
7
7
  wntaTitle: string;
8
8
  wntaTooltip: string;
9
9
  };
10
- interface IAgentGenieProps {
10
+ interface IBaseProps {
11
+ onSaveComplete?: (result: {
12
+ wta: string;
13
+ wnta: string;
14
+ }) => void;
15
+ }
16
+ export interface IAgentGenieProps extends IBaseProps {
11
17
  mode: 'agent-genie';
12
18
  agent_context?: string;
13
19
  agent_description: string;
@@ -18,21 +24,20 @@ interface IAgentGenieProps {
18
24
  wta?: string[];
19
25
  wnta?: string[];
20
26
  }
21
- interface IPromptGenieProps {
27
+ export interface IPromptGenieProps extends IBaseProps {
22
28
  mode: 'prompt-genie';
23
29
  template_context: string;
24
30
  template_description: string;
25
31
  baseUrl: string;
26
32
  }
27
- interface ICodingStandardsProps {
33
+ export interface ICodingStandardsProps extends IBaseProps {
28
34
  mode: 'coding-standards';
29
35
  }
30
- type WtaWntaProps = (IAgentGenieProps | IPromptGenieProps | ICodingStandardsProps) & {
31
- onSaveComplete?: (result: {
32
- wta: string;
33
- wnta: string;
34
- }) => void;
35
- };
36
- declare const WtaWnta: React.FC<WtaWntaProps>;
36
+ /**
37
+ * ✅ Use an interface to represent the discriminated union.
38
+ * This avoids the `extends` conflict and keeps proper narrowing.
39
+ */
40
+ export type IWtaWntaProps = IAgentGenieProps | IPromptGenieProps | ICodingStandardsProps;
41
+ declare const WtaWnta: React.FC<IWtaWntaProps>;
37
42
  export default WtaWnta;
38
43
  //# sourceMappingURL=WtaWnta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WtaWnta.d.ts","sourceRoot":"","sources":["../../../../src/features/WtaWnta/WtaWnta.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAenD,MAAM,MAAM,UAAU,GAAG;IACvB,SAA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",
3
+ "version": "0.0.67",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",