Skip to content
This repository was archived by the owner on Jul 30, 2018. It is now read-only.

Commit 6330753

Browse files
committed
updated readme and bind type
1 parent 308f677 commit 6330753

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ export default class AnimatedWidget extends WidgetBase {
376376
377377
#### Passing an effects function
378378
379-
an `effects` function can be passed to the animation and evaluated at render time. This allows you to create programatic effects such as those depending on measurements from the `Dimensions` `Meta`.
379+
An `effects` function can be passed to the animation and evaluated at render time. This allows you to create programatic effects such as those depending on measurements from the `Dimensions` `Meta`.
380380
381381
```ts
382382
export default class AnimatedWidget extends WidgetBase {

src/interfaces.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ export interface NodeHandlerInterface extends Evented {
465465
export interface WidgetMetaProperties {
466466
invalidate: () => void;
467467
nodeHandler: NodeHandlerInterface;
468-
bind: any;
468+
bind: WidgetBaseInterface;
469469
}
470470

471471
export interface Render {

src/meta/Base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { Destroyable } from '@dojo/core/Destroyable';
22
import Set from '@dojo/shim/Set';
3-
import { WidgetMetaBase, WidgetMetaProperties, NodeHandlerInterface } from '../interfaces';
3+
import { WidgetMetaBase, WidgetMetaProperties, NodeHandlerInterface, WidgetBaseInterface } from '../interfaces';
44

55
export class Base extends Destroyable implements WidgetMetaBase {
66
private _invalidate: () => void;
77
protected nodeHandler: NodeHandlerInterface;
88

99
private _requestedNodeKeys = new Set<string | number>();
1010

11-
protected _bind: any;
11+
protected _bind: WidgetBaseInterface;
1212

1313
constructor(properties: WidgetMetaProperties) {
1414
super();

0 commit comments

Comments
 (0)