@expressive-analytics/deep-thought-service
Version:
Typescript conversion of Deep Thought Services (formerly providers)
17 lines (13 loc) • 411 B
text/typescript
import {DT, DTModel, DTObject} from '@expressive-analytics/deep-thought-js'
export class DTSession extends DTModel{
protected static shared_session?:Record<string,any>
/** @return returns a singleton instance of the current session */
static shared(){
if(this.shared_session===undefined)
this.shared_session = {};
return this.shared_session;
}
static destroy(){
delete this.shared_session
}
}