Skip to content

Commit

Permalink
fix: update definition file for context (#494)
Browse files Browse the repository at this point in the history
* fix: update definition file for context

* fix: disable linting error for no-explicit-any in context definition
  • Loading branch information
joshhowenstine authored Mar 26, 2024
1 parent 57b0768 commit 170c57c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
type ThemeObject = object;
/* eslint-disable @typescript-eslint/no-explicit-any */
type ThemeObject = any;

type CallbackFunction = (...args: unknown[]) => void;

export class Context {
get theme(): ThemeObject;
set theme(value: ThemeObject);
get keyMetricsCallback(): object;
set keyMetricsCallback(value: object);
get keyMetricsCallback(): any;
set keyMetricsCallback(value: any);
get debug(): boolean;
set debug(value: boolean);

Expand Down

0 comments on commit 170c57c

Please sign in to comment.