@b9g/crank
Advanced tools
Comparing version 0.5.0-beta.0 to 0.5.0-beta.1
@@ -169,4 +169,2 @@ /** | ||
export declare function createElement<TTag extends Tag>(tag: TTag, props?: TagProps<TTag> | null | undefined, ...children: Array<unknown>): Element<TTag>; | ||
/** A single-letter alias for createElement */ | ||
export declare const c: typeof createElement; | ||
/** Clones a given element, shallowly copying the props object. */ | ||
@@ -173,0 +171,0 @@ export declare function cloneElement<TTag extends Tag>(el: Element<TTag>): Element<TTag>; |
@@ -179,4 +179,2 @@ /// <reference types="crank.d.ts" /> | ||
} | ||
/** A single-letter alias for createElement */ | ||
const c = createElement; | ||
/** Clones a given element, shallowly copying the props object. */ | ||
@@ -1659,3 +1657,3 @@ function cloneElement(el) { | ||
export { Context, Copy, Element, Fragment, Portal, Raw, Renderer, c, cloneElement, createElement, crank as default, isElement }; | ||
export { Context, Copy, Element, Fragment, Portal, Raw, Renderer, cloneElement, createElement, crank as default, isElement }; | ||
//# sourceMappingURL=crank.js.map |
/// <reference types="index.d.ts" /> | ||
export { Context, Copy, Element, Fragment, Portal, Raw, Renderer, c, cloneElement, createElement, isElement } from './crank.js'; | ||
export { Context, Copy, Element, Fragment, Portal, Raw, Renderer, cloneElement, createElement, isElement } from './crank.js'; | ||
export { xm } from './xm.js'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@b9g/crank", | ||
"version": "0.5.0-beta.0", | ||
"version": "0.5.0-beta.1", | ||
"description": "Write JSX-driven components with functions, promises and generators.", | ||
@@ -94,2 +94,2 @@ "homepage": "https://crank.js.org", | ||
} | ||
} | ||
} |
/// <reference types="xm.d.ts" /> | ||
import { c } from './crank.js'; | ||
import { createElement } from './crank.js'; | ||
@@ -417,3 +417,3 @@ const cache = new Map(); | ||
} | ||
return c(parsed.open.value, props, ...children); | ||
return createElement(parsed.open.value, props, ...children); | ||
} | ||
@@ -420,0 +420,0 @@ function formatTagForError(tag) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1033945
7498