pinets 0.7.3 → 0.7.5

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.
@@ -1,3 +1,4 @@
1
+ import { PineTypeObject } from './PineTypeObject';
1
2
  export declare function parseIndicatorOptions(args: any[]): Partial<IndicatorOptions>;
2
3
  export declare class Core {
3
4
  private context;
@@ -41,4 +42,8 @@ export declare class Core {
41
42
  int(series: any): number;
42
43
  float(series: any): number;
43
44
  string(series: any): any;
45
+ Type(definition: Record<string, string>): {
46
+ new: (...args: any[]) => PineTypeObject;
47
+ copy: (object: PineTypeObject) => PineTypeObject;
48
+ };
44
49
  }
@@ -0,0 +1,8 @@
1
+ export declare class PineTypeObject {
2
+ private _definition;
3
+ context: any;
4
+ get __def__(): Record<string, string>;
5
+ constructor(_definition: Record<string, string>, context: any);
6
+ copy(): PineTypeObject;
7
+ toString(): string;
8
+ }
@@ -2,8 +2,23 @@ export declare class PlotHelper {
2
2
  private context;
3
3
  constructor(context: any);
4
4
  private extractPlotOptions;
5
+ get linestyle_dashed(): string;
6
+ get linestyle_dotted(): string;
7
+ get linestyle_solid(): string;
8
+ get style_area(): string;
9
+ get style_areabr(): string;
10
+ get style_circles(): string;
11
+ get style_columns(): string;
12
+ get style_cross(): string;
13
+ get style_histogram(): string;
14
+ get style_line(): string;
15
+ get style_linebr(): string;
16
+ get style_stepline(): string;
17
+ get style_stepline_diamond(): string;
18
+ get style_steplinebr(): string;
19
+ param(source: any, index?: number, name?: string): any;
5
20
  plotchar(...args: any[]): void;
6
- plot(...args: any[]): void;
21
+ any(...args: any[]): void;
7
22
  plotshape(...args: any[]): void;
8
23
  plotarrow(...args: any[]): void;
9
24
  }
@@ -138,6 +138,5 @@ declare const types: {
138
138
  location: typeof location;
139
139
  size: typeof size;
140
140
  format: typeof format;
141
- plot: typeof plot;
142
141
  };
143
142
  export default types;
package/package.json CHANGED
@@ -1,7 +1,30 @@
1
1
  {
2
2
  "name": "pinets",
3
- "version": "0.7.3",
4
- "description": "",
3
+ "version": "0.7.5",
4
+ "description": "PineTS is the open-source transpiler and runtime that executes Pine Script logic in JavaScript environments (Node.js/Browser)",
5
+ "keywords": [
6
+ "Pine Script",
7
+ "Pine",
8
+ "PineScript transpiler",
9
+ "PineScript runtime",
10
+ "PineScript to JavaScript",
11
+ "PineScript to TypeScript",
12
+ "TradingView",
13
+ "Quant",
14
+ "Quantitative Finance",
15
+ "Trading",
16
+ "Technical Analysis",
17
+ "TA",
18
+ "Indicator",
19
+ "Strategy",
20
+ "Backtesting",
21
+ "Forecasting",
22
+ "Machine Learning",
23
+ "Data Science",
24
+ "Data Analysis",
25
+ "Data Visualization",
26
+ "Data Mining"
27
+ ],
5
28
  "main": "dist/pinets.min.cjs",
6
29
  "module": "dist/pinets.min.es.js",
7
30
  "browser": "dist/pinets.min.browser.es.js",