// config.json{ "version": 1, "labels": { "labels_sample": "" }, "contents": { "contents_sample": { "type": "asset" } }}// main.tsimport { Showpad } from '@showpad/experience-app-sdk'interface ConfigJSON extends Showpad.ConfigJSON { labels: { labels_sample: Showpad.Label } contents: { contents_sample: Showpad.ContentAsset }}const configJSON = await Showpad.parseConfig<ConfigJSON>() Copy
// config.json{ "version": 1, "labels": { "labels_sample": "" }, "contents": { "contents_sample": { "type": "asset" } }}// main.tsimport { Showpad } from '@showpad/experience-app-sdk'interface ConfigJSON extends Showpad.ConfigJSON { labels: { labels_sample: Showpad.Label } contents: { contents_sample: Showpad.ContentAsset }}const configJSON = await Showpad.parseConfig<ConfigJSON>()
Generic to completely type your config.json structure.
config.json
Use Label or one of the Content interfaces to get maximum type support. See example.
Optional
the computed config.json from the experience app editor.
Generated using TypeDoc
Example