Comparing version 4.6.2 to 4.6.3
@@ -42,3 +42,3 @@ { | ||
"babel-loader": "^6.2.10", | ||
"babel-preset-es2015": "6.16.0", | ||
"babel-preset-es2015": "6.22.0", | ||
"babel-preset-react": "^6.5.0", | ||
@@ -91,3 +91,3 @@ "babel-preset-stage-0": "^6.16.0", | ||
}, | ||
"version": "4.6.2" | ||
"version": "4.6.3" | ||
} |
@@ -81,4 +81,9 @@ import { Key, HTMLProps } from './common'; | ||
} | ||
export function emit(elem: EventTarget, name: string, opts?: EmitOptions): void; | ||
/** | ||
* Emits an Event on elem that is composed, bubbles and is cancelable by default. | ||
* The return value of emit() is the same as dispatchEvent(). | ||
*/ | ||
export function emit(elem: EventTarget, eventName: string, eventOptions?: EmitOptions): boolean; | ||
export var h: typeof vdom.element; | ||
@@ -98,3 +103,10 @@ | ||
export function props(elem: Component<any>, props?: any): void; | ||
/** | ||
* The props function is a getter or setter depending on if you specify the second argument. | ||
* If you do not provide props, then the current state of the component is returned. | ||
* If you pass props, then the current state of the component is set. | ||
* When you set state, the component will re-render synchronously only if it needs to be re-rendered. | ||
*/ | ||
export function props<P>(elem: Component<P>): P; | ||
export function props<P>(elem: Component<P>, props: Pick<Component<P>, '_props'>['_props']): void; | ||
@@ -101,0 +113,0 @@ export function ready(elem: Component<any>, done: (c: Component<any>) => void): void; |
export type Key = string | number; | ||
export type Ref<T> = string | ((instance: T) => any); | ||
export type Ref<T> = ((instance: T) => any); | ||
interface Attributes { | ||
key?: Key, | ||
// this will be possible removed and added just to ClassAttributes because of https://github.com/skatejs/skatejs/issues/1020 | ||
slot?: string, | ||
} | ||
interface ClassAttributes<T> extends Attributes { | ||
ref?: Ref<T>, | ||
slot?: string, | ||
} | ||
@@ -28,2 +27,3 @@ | ||
class?: string, | ||
role?: string, | ||
} | ||
@@ -30,0 +30,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
524769
6876