jsquery_node 1.0.0 → 1.0.1

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.
Files changed (3) hide show
  1. package/jsquery.d.ts +4965 -2657
  2. package/jsquery.ts +8 -3
  3. package/package.json +1 -1
package/jsquery.ts CHANGED
@@ -50,7 +50,7 @@ export const { $, JSQuery } = (() => {
50
50
  }
51
51
  new() {
52
52
  const temp = new ElementArray();
53
- this.forEach((v) => temp.push(v.new()));
53
+ this.forEach((v) => temp.push(v.new() as any));
54
54
  return temp;
55
55
  }
56
56
  //events
@@ -73,12 +73,12 @@ export const { $, JSQuery } = (() => {
73
73
  }
74
74
  this.on(e, func, s);
75
75
  }
76
- static from(elt: HTMLElement | NodeList | HTMLCollection) {
76
+ static from(elt: HTMLElement | NodeList | HTMLCollection): Element | ElementArray {
77
77
  if (elt == null) {
78
78
  return null;
79
79
  }
80
80
  if (toArray(elt)) {
81
- return ElementArray.from(elt).map((v) => new this(v as HTMLElement));
81
+ return ElementArray.from(elt).map((v) => new this(v as HTMLElement)) as ElementArray;
82
82
  }
83
83
  return new this(elt);
84
84
  }
@@ -334,3 +334,8 @@ export const { $, JSQuery } = (() => {
334
334
 
335
335
  return { $: J, JSQuery };
336
336
  })();
337
+
338
+ export type ElementArray = typeof JSQuery.ElementArray;
339
+ export type Element = typeof JSQuery.ElementArray;
340
+ export type Extension = typeof JSQuery.Extension;
341
+ export type Plugin = typeof JSQuery.Extension;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsquery_node",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "jsquery",
5
5
  "homepage": "https://github.com/chickencuber/jsquery_node#readme",
6
6
  "bugs": {