Skip to content

Commit

Permalink
chore: add version to class
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlescure committed Oct 14, 2021
1 parent 5737855 commit 52e99f8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// @ts-ignore
import { version } from '../package.json';

// @ts-ignore
export { version } from '../package.json';

export interface MonoContextState {
counts: {[k: string]: number},
stateCreatedAt: Date,
Expand All @@ -13,8 +19,9 @@ export default class MonoContext {
private static _counts: {[k: string]: number} = {};
private static _state: {[k: string]: any} = {};

static version = version;

static _warningMessage = 'WARNING: refusing to override "PROPERTY" property in MonoContext state';


static count = (key: string): number => {
if (!MonoContext._counts[key]) {
Expand Down

0 comments on commit 52e99f8

Please sign in to comment.