Resolve TS errors and warnings

TODO: Use StyleTree types to remove `any`s from styleTrees.
This commit is contained in:
Nate Butler
2023-06-28 17:54:36 -04:00
parent 1177980172
commit bfdd0824e2
53 changed files with 224 additions and 1010 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ interface InteractiveProps<T> {
* @param state Object containing optional modified fields to be included in the resulting object for each state.
* @returns Interactive<T> object with fields from `base` and `state`.
*/
export function interactive<T extends Object>({
export function interactive<T extends object>({
base,
state,
}: InteractiveProps<T>): Interactive<T> {
@@ -51,7 +51,7 @@ export function interactive<T extends Object>({
defaultState = base ? base : (state.default as T)
}
let interactiveObj: Interactive<T> = {
const interactiveObj: Interactive<T> = {
default: defaultState,
}