Server/project/src/context/ContextVariable.ts
Refringe 5740774a46
Apply Biome Formatting
This is the result of running `npm run format` which applies the Biome formatting rules. Rejoice!
2024-07-23 11:12:53 -04:00

26 lines
566 B
TypeScript

import { ContextVariableType } from "@spt/context/ContextVariableType";
export class ContextVariable {
private value: any;
private timestamp: Date;
private type: ContextVariableType;
constructor(value: any, type: ContextVariableType) {
this.value = value;
this.timestamp = new Date();
this.type = type;
}
public getValue<T>(): T {
return this.value;
}
public getTimestamp(): Date {
return this.timestamp;
}
public getType(): ContextVariableType {
return this.type;
}
}