nesquick 0.0.4 → 0.0.6

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.
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.jsxDEV = jsxDEV;
18
+ const jsx_runtime_1 = require("./jsx-runtime");
19
+ __exportStar(require("./jsx-runtime"), exports);
20
+ function jsxDEV(type, props, key, _isStaticChildren, source, self) {
21
+ return (0, jsx_runtime_1.jsx)(type, {
22
+ ...props,
23
+ __source: source,
24
+ __self: self
25
+ }, key);
26
+ }
@@ -0,0 +1,9 @@
1
+ import { Fragment } from "./jsx-runtime";
2
+ import { FunctionComponent, Props } from "./NesquickElement";
3
+ export * from "./jsx-runtime";
4
+ type JsxSource = {
5
+ fileName: string;
6
+ lineNumber: number;
7
+ columnNumber?: number;
8
+ };
9
+ export declare function jsxDEV<P extends Props>(type: string | FunctionComponent<P> | typeof Fragment, props: P, key: string | number | null, _isStaticChildren: boolean, source: JsxSource, self: any): import("./NesquickFragment").NesquickFragment | import("./NesquickElement").NesquickElement<P>;
@@ -1,7 +1,7 @@
1
1
  import { FunctionComponent, Props, NesquickElement } from "./NesquickElement";
2
2
  import { NesquickFragment } from "./NesquickFragment";
3
3
  export declare const Fragment: unique symbol;
4
- export declare function jsxs<P extends Props>(type: string | FunctionComponent<P> | typeof Fragment, props: P, key?: string): NesquickFragment | NesquickElement<P>;
4
+ export declare function jsxs<P extends Props>(type: string | FunctionComponent<P> | typeof Fragment, props: P, key?: string | number | null): NesquickFragment | NesquickElement<P>;
5
5
  export declare const jsx: typeof jsxs;
6
6
  declare const WrappedFunctionType: unique symbol;
7
7
  type WrappedFunction<T> = (() => T) & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nesquick",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "React-like library with focus on drawing performance",
5
5
  "types": "./lib/types",
6
6
  "main": "./lib",