We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b2b6a7 commit 3ab680aCopy full SHA for 3ab680a
lib/interact-for-custom-metadata.ts
@@ -1,13 +1,16 @@
1
import prompts from "prompts"
2
import { getSeam } from "./get-seam"
3
import { CustomMetadata } from "@seamapi/types/connect"
4
+
5
+type UpdatedCustomMetadata = {
6
+ [x: string]: string | boolean | null
7
+}
8
9
export const interactForCustomMetadata = async (
10
custom_metadata: CustomMetadata
11
) => {
12
const seam = await getSeam()
- const updated_custom_metadata: CustomMetadata = {
- ...custom_metadata,
- }
13
+ const updated_custom_metadata: UpdatedCustomMetadata = { ...custom_metadata }
14
15
const displayCurrentCustomMetadata = () => {
16
console.log("custom_metadata:")
0 commit comments