Explorar o código

set plugin Context.customState: unknown

Alexander Rose %!s(int64=5) %!d(string=hai) anos
pai
achega
01b0dde503
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
      * 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) {
         try {