Comparing version 1.0.1 to 1.0.2
import { Component, Markdown } from "./model"; | ||
export declare function createElement(component: Component, attributes: {} | null, ...children: Markdown[]): Markdown | Markdown[]; | ||
export declare function createElement(component: Component, attributes: Record<string, unknown> | null, ...children: Markdown[]): Markdown | Markdown[]; | ||
export declare function createElement(nodeType: string, attributes: null, ...children: Markdown[]): Markdown | Markdown[]; |
export declare type Markdown = string | number | undefined; | ||
export declare type Props = {}; | ||
export declare type Props = Record<string, unknown>; | ||
export declare type Component<ComponentProps extends Props = Props> = (props: ComponentProps) => Markdown | Markdown[]; |
{ | ||
"name": "jsx-md", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Generate markdown files with a React-like syntax.", | ||
@@ -30,5 +30,5 @@ "main": "lib/index.js", | ||
"@types/jest": "^26.0.10", | ||
"@typescript-eslint/parser": "^2.26.0", | ||
"@typescript-eslint/eslint-plugin": "^2.26.0", | ||
"eslint": "^6.8.0", | ||
"@typescript-eslint/parser": "^3.10.1", | ||
"@typescript-eslint/eslint-plugin": "^3.10.1", | ||
"eslint": "^7.7.0", | ||
"eslint-config-prettier": "^6.10.1", | ||
@@ -35,0 +35,0 @@ "eslint-plugin-prettier": "^3.1.2", |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28105
0