@peersyst/react-utils
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -7,6 +7,8 @@ import { JSXElementConstructor, ReactNode } from "react"; | ||
} & { | ||
[K in keyof E]: E[K] extends JSXElementConstructor<infer P> ? JSXElementConstructor<P> : JSXElementConstructor<any>; | ||
[K in keyof E]: E[K]; | ||
}; | ||
export default function rack<P extends { | ||
export default function <P extends { | ||
children: ReactNode; | ||
}, S extends string[], K extends S[number], E extends Partial<Record<K, JSXElementConstructor<any>>>>(factory: (props: P, slots: Slots<K[], E>) => JSX.Element, slots: K[], extensions?: E): JSXElementConstructor<P> & Slots<K[], E>; | ||
}, S extends string[], K extends S[number], E extends { | ||
[x: K]: JSXElementConstructor<any>; | ||
}>(factory: (props: P, slots: Slots<K[], E>) => JSX.Element, slots: K[], extensions?: E): JSXElementConstructor<P> & Slots<K[], E>; |
@@ -18,3 +18,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
import createSlot from "./createSlot"; | ||
export default function rack(factory, slots) { | ||
export default function (factory, slots) { | ||
var extensions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
@@ -21,0 +21,0 @@ |
@@ -18,3 +18,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
import createSlot from "./createSlot"; | ||
export default function rack(factory, slots) { | ||
export default function (factory, slots) { | ||
var extensions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
@@ -21,0 +21,0 @@ |
@@ -18,3 +18,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
import createSlot from "./createSlot"; | ||
export default function rack(factory, slots) { | ||
export default function (factory, slots) { | ||
var extensions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
@@ -21,0 +21,0 @@ |
@@ -8,3 +8,3 @@ "use strict"; | ||
}); | ||
exports["default"] = rack; | ||
exports["default"] = _default; | ||
@@ -33,3 +33,3 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
function rack(factory, slots) { | ||
function _default(factory, slots) { | ||
var extensions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
@@ -36,0 +36,0 @@ |
{ | ||
"name": "@peersyst/react-utils", | ||
"author": "Peersyst", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "main": "./node/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2653
123913