Sfoglia il codice sorgente

set plugin Context.customState: unknown

Alexander Rose 5 anni fa
parent
commit
01b0dde503
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/mol-plugin/context.ts

+ 1 - 1
src/mol-plugin/context.ts

@@ -137,7 +137,7 @@ export class PluginContext {
      * Used to store application specific custom state which is then available
      * Used to store application specific custom state which is then available
      * to State Actions and similar constructs via the PluginContext.
      * to State Actions and similar constructs via the PluginContext.
      */
      */
-    readonly customState: any = Object.create(null);
+    readonly customState: unknown = Object.create(null);
 
 
     initViewer(canvas: HTMLCanvasElement, container: HTMLDivElement) {
     initViewer(canvas: HTMLCanvasElement, container: HTMLDivElement) {
         try {
         try {