jsquery_node 1.0.1 → 1.0.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.
- package/jsquery.d.ts +2174 -622
- package/jsquery.ts +6 -6
- package/package.json +1 -1
package/jsquery.ts
CHANGED
|
@@ -253,16 +253,16 @@ export const { $, JSQuery } = (() => {
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
function J(q: any) {
|
|
257
|
-
return Element.from(document.querySelector(q));
|
|
256
|
+
function J(q: any): Element {
|
|
257
|
+
return Element.from(document.querySelector(q)) as any;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
J.from = (elt: HTMLElement | NodeList | HTMLCollection) => {
|
|
261
261
|
return Element.from(elt);
|
|
262
262
|
};
|
|
263
263
|
|
|
264
|
-
J.all = (q: any) => {
|
|
265
|
-
return Element.from(document.querySelectorAll(q));
|
|
264
|
+
J.all = (q: any): ElementArray => {
|
|
265
|
+
return Element.from(document.querySelectorAll(q)) as any;
|
|
266
266
|
};
|
|
267
267
|
|
|
268
268
|
let head: Element;
|
|
@@ -283,8 +283,8 @@ export const { $, JSQuery } = (() => {
|
|
|
283
283
|
return doc;
|
|
284
284
|
};
|
|
285
285
|
|
|
286
|
-
J.create = (t: any) => {
|
|
287
|
-
return Element.from(document.createElement(t));
|
|
286
|
+
J.create = (t: any): Element => {
|
|
287
|
+
return Element.from(document.createElement(t)) as any;
|
|
288
288
|
};
|
|
289
289
|
|
|
290
290
|
const JSQuery = {
|