mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-03 23:08:12 +08:00
chore: type general utils (#2381)
* type camera
* type reducer store
* type actionhelpers
* type catchErrorsWrap callsite
* missed camera member var
* type nameCreators
* type makeContinousDimensionName callsite
* type promise limit
* type quantile
* type range
* introduce TypedArray + NumericArray
* type range
* cleanup test
* fix call sites
* type plimit call site
* finish typing camera
* use our TypedArray
* type scientific and sigFig utils and callsites
* simple typings
* type catLabelSort
* type callsite
* type
* callsites
* type camera methods
* swap back to strings, set defaults accordingly
* partially type centroid
* explicit tuple and undefined check
* fix references to this
* call constructor with new and casting
* Revert "introduce TypedArray + NumericArray"
This reverts commit cf21538717.
* explicit tuple
* generics and import fixes
* add unsigned 8 clamped arrray
* back to literals
* use arraytypes
* fix return state
* type more actions
* Update client/src/util/actionHelpers.ts
Co-authored-by: Timmy Huang <tihuan@users.noreply.github.com>
* properly type dispatch
* properly type thunk
* use new dispatch
* remove nullish coallescer
* use AppDispatch
* generic jsonrequest
* use dispatch again
* lint
Co-authored-by: Timmy Huang <tihuan@users.noreply.github.com>
This commit is contained in:
co-authored by
Timmy Huang
parent
45cecad76a
commit
08b03ace60
+14
-1
@@ -8,11 +8,24 @@ export const overflowCategoryLabel = ": all other labels";
|
||||
/* default "unassigned" value for user-created categorical metadata */
|
||||
export const unassignedCategoryLabel = "unassigned";
|
||||
|
||||
/* rough shape of config object */
|
||||
export interface Config {
|
||||
features: Record<string, unknown>;
|
||||
displayNames: Record<string, unknown>;
|
||||
parameters: {
|
||||
"disable-diffexp"?: boolean;
|
||||
"diffexp-may-be-slow"?: boolean;
|
||||
default_embedding?: string;
|
||||
[key: string]: unknown;
|
||||
};
|
||||
links: Record<string, unknown>;
|
||||
}
|
||||
|
||||
/*
|
||||
these are default values for configuration the CLI may supply.
|
||||
See the REST API and CLI specs for more info.
|
||||
*/
|
||||
export const configDefaults = {
|
||||
export const configDefaults: Config = {
|
||||
features: {},
|
||||
displayNames: {},
|
||||
parameters: {
|
||||
|
||||
Reference in New Issue
Block a user