@khanacademy/wonder-blocks-timing
Advanced tools
Comparing version 3.0.0 to 3.0.1
# @khanacademy/wonder-blocks-timing | ||
## 3.0.1 | ||
### Patch Changes | ||
- ccb6fe00: Miscellaneous TS type fixes | ||
- d4c2b18c: Fix a variety of issues with Flow types generated by flowgen | ||
## 3.0.0 | ||
@@ -4,0 +11,0 @@ |
@@ -9,3 +9,3 @@ import * as React from "react"; | ||
*/ | ||
children: (arg1: IScheduleActions) => React.ReactElement; | ||
children: (arg1: IScheduleActions) => React.ReactNode; | ||
}; | ||
@@ -25,4 +25,4 @@ /** | ||
_actionScheduler: ActionScheduler; | ||
render(): React.ReactElement; | ||
render(): React.ReactNode; | ||
} | ||
export {}; |
@@ -19,3 +19,3 @@ export type SchedulePolicy = "schedule-immediately" | "schedule-on-demand"; | ||
*/ | ||
isSet(): boolean; | ||
get isSet(): boolean; | ||
/** | ||
@@ -61,3 +61,3 @@ * Set the timeout. | ||
*/ | ||
isSet(): boolean; | ||
get isSet(): boolean; | ||
/** | ||
@@ -103,3 +103,3 @@ * Set the interval. | ||
*/ | ||
isSet(): boolean; | ||
get isSet(): boolean; | ||
/** | ||
@@ -106,0 +106,0 @@ * Set the request. |
{ | ||
"name": "@khanacademy/wonder-blocks-timing", | ||
"private": false, | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"design": "v1", | ||
@@ -20,3 +20,3 @@ "publishConfig": { | ||
"devDependencies": { | ||
"wb-dev-build-settings": "^0.8.0" | ||
"wb-dev-build-settings": "^0.9.0" | ||
}, | ||
@@ -23,0 +23,0 @@ "author": "", |
@@ -11,3 +11,3 @@ import * as React from "react"; | ||
*/ | ||
children: (arg1: IScheduleActions) => React.ReactElement; | ||
children: (arg1: IScheduleActions) => React.ReactNode; | ||
}; | ||
@@ -32,3 +32,3 @@ | ||
render(): React.ReactElement { | ||
render(): React.ReactNode { | ||
const {children} = this.props; | ||
@@ -35,0 +35,0 @@ return children(this._actionScheduler); |
@@ -71,4 +71,3 @@ import {useEffect, useState, useCallback} from "react"; | ||
// @ts-expect-error [FEI-5019] - TS2322 - Type 'boolean' is not assignable to type '() => boolean'. | ||
return {isSet, set, clear}; | ||
} |
@@ -78,4 +78,3 @@ import {useEffect, useState, useCallback} from "react"; | ||
// @ts-expect-error [FEI-5019] - TS2322 - Type 'boolean' is not assignable to type '() => boolean'. | ||
return {isSet, set, clear}; | ||
} |
@@ -24,3 +24,2 @@ import Timeout from "./timeout"; | ||
set: () => {}, | ||
// @ts-expect-error [FEI-5019] - TS2322 - Type 'boolean' is not assignable to type '(() => boolean) & (() => boolean) & (() => boolean)'. | ||
get isSet() { | ||
@@ -42,3 +41,2 @@ return false; | ||
this._registeredActions.push(() => timeout.clear(options?.clearPolicy)); | ||
// @ts-expect-error [FEI-5019] - TS2322 - Type 'Timeout' is not assignable to type 'ITimeout'. | ||
return timeout; | ||
@@ -59,3 +57,2 @@ } | ||
); | ||
// @ts-expect-error [FEI-5019] - TS2322 - Type 'Interval' is not assignable to type 'IInterval'. | ||
return interval; | ||
@@ -78,3 +75,2 @@ } | ||
); | ||
// @ts-expect-error [FEI-5019] - TS2322 - Type 'AnimationFrame' is not assignable to type 'IAnimationFrame'. | ||
return animationFrame; | ||
@@ -81,0 +77,0 @@ } |
@@ -54,3 +54,2 @@ import { | ||
*/ | ||
// @ts-expect-error [FEI-5019] - TS2416 - Property 'isSet' in type 'AnimationFrame' is not assignable to the same property in base type 'IAnimationFrame'. | ||
get isSet(): boolean { | ||
@@ -57,0 +56,0 @@ return this._animationFrameId != null; |
@@ -62,3 +62,2 @@ import { | ||
*/ | ||
// @ts-expect-error [FEI-5019] - TS2416 - Property 'isSet' in type 'Interval' is not assignable to the same property in base type 'IInterval'. | ||
get isSet(): boolean { | ||
@@ -65,0 +64,0 @@ return this._intervalId != null; |
@@ -63,3 +63,2 @@ import { | ||
*/ | ||
// @ts-expect-error [FEI-5019] - TS2416 - Property 'isSet' in type 'Timeout' is not assignable to the same property in base type 'ITimeout'. | ||
get isSet(): boolean { | ||
@@ -66,0 +65,0 @@ return this._timeoutId != null; |
@@ -21,3 +21,3 @@ export type SchedulePolicy = "schedule-immediately" | "schedule-on-demand"; | ||
*/ | ||
isSet(): boolean; | ||
get isSet(): boolean; | ||
/** | ||
@@ -64,3 +64,3 @@ * Set the timeout. | ||
*/ | ||
isSet(): boolean; | ||
get isSet(): boolean; | ||
/** | ||
@@ -107,3 +107,3 @@ * Set the interval. | ||
*/ | ||
isSet(): boolean; | ||
get isSet(): boolean; | ||
/** | ||
@@ -110,0 +110,0 @@ * Set the request. |
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 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
214107
4121