If the generic type is passed, the result will immediately be typed correctly.
If the value is a stringified JSON it will automatically be parsed. Also booleans, strings and numbers will automatically be parsed correctly.
import { Showpad } from '@showpad/experience-app-sdk'type Contact = { name: string surname: string}const contact = await Showpad.getGlobalStoreEntryValue<Contact>('Contacts', '4aeed8ee-45d1-43c9-9c98-76ff57420b82') Copy
import { Showpad } from '@showpad/experience-app-sdk'type Contact = { name: string surname: string}const contact = await Showpad.getGlobalStoreEntryValue<Contact>('Contacts', '4aeed8ee-45d1-43c9-9c98-76ff57420b82')
Generated using TypeDoc
If the generic type is passed, the result will immediately be typed correctly.
If the value is a stringified JSON it will automatically be parsed. Also booleans, strings and numbers will automatically be parsed correctly.
Example