Skip to content

Commit 7282d7b

Browse files
committed
Fixed TypeScript typing issues
1 parent 0e20ac8 commit 7282d7b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

chartlets.js/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chartlets.js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chartlets",
3-
"version": "0.0.17",
3+
"version": "0.0.18",
44
"description": "An experimental library for integrating interactive charts into existing JavaScript applications.",
55
"type": "module",
66
"files": [

chartlets.js/src/lib/actions/configureFramework.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ export function configureFramework<S extends object = object>(
1313
options.hostStore.subscribe(handleHostStoreChange);
1414
}
1515
store.setState({
16-
configuration: { ...options },
16+
configuration: { ...options } as FrameworkOptions<object>,
1717
});
1818
}

chartlets.js/src/lib/types/state/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface FrameworkOptions<S extends object = object> {
1313
/** The host applications state management store. */
1414
hostStore?: StoreApi<S>;
1515
/** Get a derived state from given host state. */
16-
getDerivedHostState?: <S>(hostState: S, propertyName: string) => unknown;
16+
getDerivedHostState?: (hostState: S, propertyName: string) => unknown;
1717
/** API options to configure backend. */
1818
api?: ApiOptions;
1919
/** Logging options. */

0 commit comments

Comments
 (0)