Skip to content

Commit

Permalink
no-log: clean up ActionType and ResponseType
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonatepaint committed Apr 11, 2024
1 parent 89d93e7 commit 70a2aaf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 28 deletions.
9 changes: 0 additions & 9 deletions copy.sh

This file was deleted.

10 changes: 1 addition & 9 deletions src/models/action.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import { TokenCollection } from "./tokens";

enum Actions {
authenticate,
initialize,
logout,
redeemCode,
refreshTokens,
}

export type ActionType = keyof typeof Actions;
export type ActionType = "authenticate" | "initialize" | "logout" | "redeemCode" | "refreshTokens";

export interface ActionDetails {
id: string;
Expand Down
12 changes: 2 additions & 10 deletions src/models/response.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
import { Tokens } from "./tokens";
import { User } from "./user";

enum Responses {
initialized,
authenticate,
logout,
redeemCode,
refreshTokens,
redirectToLogin,
}

export type ResponseType = keyof typeof Responses;
export type ResponseType =
"initialized" | "authenticate" | "logout" | "redeemCode" | "refreshTokens" | "redirectToLogin";

export interface FunctionCallbacks {
[key: string]: (message: ResponseMessage) => void;
Expand Down

0 comments on commit 70a2aaf

Please sign in to comment.