forked from geolba/tethys.backend
11 lines
275 B
TypeScript
11 lines
275 B
TypeScript
|
import ResumptionToken from './ResumptionToken';
|
||
|
|
||
|
export default interface TokenWorkerContract {
|
||
|
ttl: number;
|
||
|
isConnected: boolean;
|
||
|
connect();
|
||
|
close();
|
||
|
get(key: string): Promise<ResumptionToken | null>;
|
||
|
set(token: ResumptionToken): Promise<string>;
|
||
|
}
|