@drincs/pixi-vn 1.2.1 → 1.2.2

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.
@@ -22,7 +22,7 @@ declare class ChoiceMenuOption<T extends StorageObjectType, TLabel extends Label
22
22
  /**
23
23
  * Text to be displayed in the menu
24
24
  */
25
- text: string;
25
+ text: ChoiceInterface["text"];
26
26
  private _label;
27
27
  /**
28
28
  * Label to be opened when the option is selected
@@ -78,7 +78,7 @@ declare class ChoiceMenuOption<T extends StorageObjectType, TLabel extends Label
78
78
  * @param props Properties to be passed to the label and olther parameters that you can use when get all the choice menu options. It be converted to a JSON string, so it cannot contain functions or classes.
79
79
  * @param options Options
80
80
  */
81
- constructor(text: string, label: Label<T> | LabelAbstract<any, T> | LabelIdType, props: T, options?: ChoiceMenuOptionOptions);
81
+ constructor(text: ChoiceInterface["text"], label: Label<T> | LabelAbstract<any, T> | LabelIdType, props: T, options?: ChoiceMenuOptionOptions);
82
82
  }
83
83
  /**
84
84
  * Function to create a new choice menu option.
@@ -87,6 +87,6 @@ declare class ChoiceMenuOption<T extends StorageObjectType, TLabel extends Label
87
87
  * newChoiceOption("Hello", HelloLabel, {})
88
88
  * ```
89
89
  */
90
- declare function newChoiceOption<T extends StorageObjectType>(text: string, label: Label<T> | LabelAbstract<any, T> | LabelIdType, props: T, options?: ChoiceMenuOptionOptions): ChoiceOptionInterface;
90
+ declare function newChoiceOption<T extends StorageObjectType>(text: ChoiceInterface["text"], label: Label<T> | LabelAbstract<any, T> | LabelIdType, props: T, options?: ChoiceMenuOptionOptions): ChoiceOptionInterface;
91
91
 
92
92
  export { ChoiceMenuOption as default, newChoiceOption };
@@ -22,7 +22,7 @@ declare class ChoiceMenuOption<T extends StorageObjectType, TLabel extends Label
22
22
  /**
23
23
  * Text to be displayed in the menu
24
24
  */
25
- text: string;
25
+ text: ChoiceInterface["text"];
26
26
  private _label;
27
27
  /**
28
28
  * Label to be opened when the option is selected
@@ -78,7 +78,7 @@ declare class ChoiceMenuOption<T extends StorageObjectType, TLabel extends Label
78
78
  * @param props Properties to be passed to the label and olther parameters that you can use when get all the choice menu options. It be converted to a JSON string, so it cannot contain functions or classes.
79
79
  * @param options Options
80
80
  */
81
- constructor(text: string, label: Label<T> | LabelAbstract<any, T> | LabelIdType, props: T, options?: ChoiceMenuOptionOptions);
81
+ constructor(text: ChoiceInterface["text"], label: Label<T> | LabelAbstract<any, T> | LabelIdType, props: T, options?: ChoiceMenuOptionOptions);
82
82
  }
83
83
  /**
84
84
  * Function to create a new choice menu option.
@@ -87,6 +87,6 @@ declare class ChoiceMenuOption<T extends StorageObjectType, TLabel extends Label
87
87
  * newChoiceOption("Hello", HelloLabel, {})
88
88
  * ```
89
89
  */
90
- declare function newChoiceOption<T extends StorageObjectType>(text: string, label: Label<T> | LabelAbstract<any, T> | LabelIdType, props: T, options?: ChoiceMenuOptionOptions): ChoiceOptionInterface;
90
+ declare function newChoiceOption<T extends StorageObjectType>(text: ChoiceInterface["text"], label: Label<T> | LabelAbstract<any, T> | LabelIdType, props: T, options?: ChoiceMenuOptionOptions): ChoiceOptionInterface;
91
91
 
92
92
  export { ChoiceMenuOption as default, newChoiceOption };
@@ -1 +1 @@
1
- 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var o="close";var t=class{text;closeCurrentLabel;type=o;oneTime;onlyHaveNoChoice;autoSelect;props={};devProps={};constructor(e,s){let{closeCurrentLabel:n=false,oneTime:r=false,onlyHaveNoChoice:i=false,autoSelect:c=false,...p}=s||{};this.text=e,this.closeCurrentLabel=n,this.oneTime=r,this.onlyHaveNoChoice=i,this.autoSelect=c,this.devProps=p;}};function f(l,e){return {...e,type:o,text:l}}exports.default=t;exports.newCloseChoiceOption=f;
1
+ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var o="close";var t=class{text;closeCurrentLabel;type=o;oneTime;onlyHaveNoChoice;autoSelect;props={};devProps={};constructor(e,n){let{closeCurrentLabel:r=false,oneTime:c=false,onlyHaveNoChoice:s=false,autoSelect:i=false,...a}=n||{};this.text=e,this.closeCurrentLabel=r,this.oneTime=c,this.onlyHaveNoChoice=s,this.autoSelect=i,this.devProps=a;}};function f(l,e){return {...e,type:o,text:l}}exports.default=t;exports.newCloseChoiceOption=f;
@@ -18,7 +18,7 @@ declare class ChoiceMenuOptionClose {
18
18
  /**
19
19
  * Text to be displayed in the menu
20
20
  */
21
- text: string;
21
+ text: ChoiceInterface["text"];
22
22
  /**
23
23
  * If true, the current label will be closed
24
24
  */
@@ -71,7 +71,7 @@ declare class ChoiceMenuOptionClose {
71
71
  * @param text Text to be displayed in the menu
72
72
  * @param options Options
73
73
  */
74
- constructor(text: string, options?: ChoiceMenuOptionCloseOptions);
74
+ constructor(text: ChoiceInterface["text"], options?: ChoiceMenuOptionCloseOptions);
75
75
  }
76
76
  /**
77
77
  * Function to create a new choice menu option that will close the menu.
@@ -80,6 +80,6 @@ declare class ChoiceMenuOptionClose {
80
80
  * newCloseChoiceOption("Return")
81
81
  * ```
82
82
  */
83
- declare function newCloseChoiceOption(text: string, options?: ChoiceMenuOptionCloseOptions): CloseChoiceOptionInterface;
83
+ declare function newCloseChoiceOption(text: ChoiceInterface["text"], options?: ChoiceMenuOptionCloseOptions): CloseChoiceOptionInterface;
84
84
 
85
85
  export { ChoiceMenuOptionClose as default, newCloseChoiceOption };
@@ -18,7 +18,7 @@ declare class ChoiceMenuOptionClose {
18
18
  /**
19
19
  * Text to be displayed in the menu
20
20
  */
21
- text: string;
21
+ text: ChoiceInterface["text"];
22
22
  /**
23
23
  * If true, the current label will be closed
24
24
  */
@@ -71,7 +71,7 @@ declare class ChoiceMenuOptionClose {
71
71
  * @param text Text to be displayed in the menu
72
72
  * @param options Options
73
73
  */
74
- constructor(text: string, options?: ChoiceMenuOptionCloseOptions);
74
+ constructor(text: ChoiceInterface["text"], options?: ChoiceMenuOptionCloseOptions);
75
75
  }
76
76
  /**
77
77
  * Function to create a new choice menu option that will close the menu.
@@ -80,6 +80,6 @@ declare class ChoiceMenuOptionClose {
80
80
  * newCloseChoiceOption("Return")
81
81
  * ```
82
82
  */
83
- declare function newCloseChoiceOption(text: string, options?: ChoiceMenuOptionCloseOptions): CloseChoiceOptionInterface;
83
+ declare function newCloseChoiceOption(text: ChoiceInterface["text"], options?: ChoiceMenuOptionCloseOptions): CloseChoiceOptionInterface;
84
84
 
85
85
  export { ChoiceMenuOptionClose as default, newCloseChoiceOption };
@@ -1 +1 @@
1
- var o="close";var t=class{text;closeCurrentLabel;type=o;oneTime;onlyHaveNoChoice;autoSelect;props={};devProps={};constructor(e,s){let{closeCurrentLabel:n=false,oneTime:r=false,onlyHaveNoChoice:i=false,autoSelect:c=false,...p}=s||{};this.text=e,this.closeCurrentLabel=n,this.oneTime=r,this.onlyHaveNoChoice=i,this.autoSelect=c,this.devProps=p;}};function f(l,e){return {...e,type:o,text:l}}export{t as default,f as newCloseChoiceOption};
1
+ var o="close";var t=class{text;closeCurrentLabel;type=o;oneTime;onlyHaveNoChoice;autoSelect;props={};devProps={};constructor(e,n){let{closeCurrentLabel:r=false,oneTime:c=false,onlyHaveNoChoice:s=false,autoSelect:i=false,...a}=n||{};this.text=e,this.closeCurrentLabel=r,this.oneTime=c,this.onlyHaveNoChoice=s,this.autoSelect=i,this.devProps=a;}};function f(l,e){return {...e,type:o,text:l}}export{t as default,f as newCloseChoiceOption};