Skip to content

Commit 3ab680a

Browse files
committed
add UpdatedCustomMetadata type
1 parent 7b2b6a7 commit 3ab680a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/interact-for-custom-metadata.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import prompts from "prompts"
22
import { getSeam } from "./get-seam"
33
import { CustomMetadata } from "@seamapi/types/connect"
4+
5+
type UpdatedCustomMetadata = {
6+
[x: string]: string | boolean | null
7+
}
8+
49
export const interactForCustomMetadata = async (
510
custom_metadata: CustomMetadata
611
) => {
712
const seam = await getSeam()
8-
const updated_custom_metadata: CustomMetadata = {
9-
...custom_metadata,
10-
}
13+
const updated_custom_metadata: UpdatedCustomMetadata = { ...custom_metadata }
1114

1215
const displayCurrentCustomMetadata = () => {
1316
console.log("custom_metadata:")

0 commit comments

Comments
 (0)