Skip to content

Commit

Permalink
add UpdatedCustomMetadata type
Browse files Browse the repository at this point in the history
  • Loading branch information
kainpets committed May 15, 2024
1 parent 7b2b6a7 commit 3ab680a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/interact-for-custom-metadata.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import prompts from "prompts"
import { getSeam } from "./get-seam"
import { CustomMetadata } from "@seamapi/types/connect"

type UpdatedCustomMetadata = {
[x: string]: string | boolean | null
}

export const interactForCustomMetadata = async (
custom_metadata: CustomMetadata
) => {
const seam = await getSeam()
const updated_custom_metadata: CustomMetadata = {
...custom_metadata,
}
const updated_custom_metadata: UpdatedCustomMetadata = { ...custom_metadata }

const displayCurrentCustomMetadata = () => {
console.log("custom_metadata:")
Expand Down

0 comments on commit 3ab680a

Please sign in to comment.