You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

base-session.ts 297B

1234567891011121314151617
  1. import { Data } from "types"
  2. export default class BaseSession {
  3. constructor(data: Data) {}
  4. update(data: Data, ...args: unknown[]) {
  5. // Update the state
  6. }
  7. complete(data: Data, ...args: unknown[]) {
  8. // Create a command
  9. }
  10. cancel(data: Data) {
  11. // Clean up the change
  12. }
  13. }