Comparing version 8.0.1-beta.4 to 8.0.1-beta.5
@@ -1,1 +0,2 @@ | ||
export * from "./types/index.d"; | ||
export * from "./types/index.d"; | ||
export as namespace jsxDom; |
{ | ||
"name": "jsx-dom", | ||
"version": "8.0.1-beta.4", | ||
"version": "8.0.1-beta.5", | ||
"description": "JSX to document.createElement.", | ||
@@ -15,3 +15,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"csstype": "^3.0.9" | ||
"csstype": "^3.0.10" | ||
}, | ||
@@ -18,0 +18,0 @@ "eslintIgnore": [ |
@@ -21,3 +21,3 @@ # jsx-dom | ||
**Note:** `jsx-dom` is ESM only. If you absolutely need CommonJS support, use `jsx-dom-cjs` instead. | ||
`jsx-dom` is ESM only. If you need CommonJS support, install `jsx-dom-cjs` instead. These two packages only differ in module format. | ||
@@ -294,10 +294,13 @@ **Note:** If you are using [React Automatic Runtime](https://babeljs.io/docs/en/babel-plugin-transform-react-jsx), simply set `jsxImportSource` to `jsx-dom` or `jsx-dom/min` and you can omit the import. | ||
```ts | ||
function preventDefault(event: Event): Event | ||
// Returns the event object | ||
export function preventDefault(event: Event): Event; | ||
function stopPropagation(event: Event): Event | ||
// Returns the event object | ||
export function stopPropagation(event: Event): Event; | ||
/** `namespaceURI` string for SVG Elements. */ | ||
const SVGNamespace: string | ||
// `namespaceURI` string for SVG Elements. | ||
export const SVGNamespace: string; | ||
function className(value: any): string | ||
// Convert a value into a className string. See docs above. | ||
export function className(value: any): string; | ||
``` | ||
@@ -308,3 +311,3 @@ | ||
/** Short type aliases for HTML elements */ | ||
namespace HTML { | ||
export namespace HTML { | ||
type Anchor = HTMLAnchorElement | ||
@@ -317,3 +320,3 @@ type Button = HTMLButtonElement | ||
/** Short type aliases for SVG elements */ | ||
namespace SVG { | ||
export namespace SVG { | ||
type Anchor = SVGAElement | ||
@@ -337,8 +340,12 @@ type Animate = SVGAnimateElement | ||
```ts | ||
function memo<P, T extends (props: P) => JSX.Element>(render: T): T | ||
function useMemo<T>(fn: () => T, deps: any[]): T | ||
function useCallback<T extends Function>(fn: T, deps: any[]): T | ||
// Returns `render` function | ||
export function memo<P, T extends (props: P) => JSX.Element>(render: T): T; | ||
// Returns `fn` function | ||
export function useMemo<T>(fn: () => T, deps: any[]): T; | ||
// Returns `fn` function | ||
export function useCallback<T extends Function>(fn: T, deps: any[]): T; | ||
const StrictMode: React.FC | ||
class PureComponent {} | ||
export const StrictMode: React.FC; | ||
export class PureComponent {} | ||
``` | ||
@@ -345,0 +352,0 @@ |
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
119865
2965
358
Updatedcsstype@^3.0.10