Skip to content

Commit

Permalink
add enum for saving behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
L-a-r-t committed May 8, 2023
1 parent abb065d commit 2d59218
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/utils/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import type {
PageObjectResponse,
PartialPageObjectResponse
} from "@notionhq/client/build/src/api-endpoints"

import type { parseSave } from "~api/parseSave"

import type { IconResponse, SelectPropertyResponse } from "./notion"

export type ToBeSaved = {
prompt: string
answer: string
title: string
url: string
} | null

export type StoredDatabase = {
Expand Down Expand Up @@ -31,3 +39,5 @@ export type PopupEnum =
| "about"
| "wrongpage"
| "dbsettings"

export type SaveBehavior = "override" | "append" | "ignore"

0 comments on commit 2d59218

Please sign in to comment.