-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into increase-code-coverage-in-package-jsapi-utils
- Loading branch information
Showing
12 changed files
with
143 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
import { RootState, ServerConfigValues } from '@deephaven/redux'; | ||
import { RootState } from '@deephaven/redux'; | ||
import LayoutStorage from '../storage/LayoutStorage'; | ||
|
||
/** | ||
* Get the layout storage used by the app | ||
* @param store The redux store | ||
* @returns The layout storage instance | ||
*/ | ||
export const getLayoutStorage = (store: RootState): LayoutStorage => | ||
store.layoutStorage as LayoutStorage; | ||
export const getLayoutStorage = <State extends RootState = RootState>( | ||
store: State | ||
): LayoutStorage => store.layoutStorage as LayoutStorage; | ||
|
||
/** | ||
* Get the configuration values of the server | ||
* @param store The redux store | ||
* @returns The layout storage instance | ||
*/ | ||
export const getServerConfigValues = (store: RootState): ServerConfigValues => | ||
store.serverConfigValues; | ||
export const getServerConfigValues = <State extends RootState = RootState>( | ||
store: State | ||
): State['serverConfigValues'] => store.serverConfigValues; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.