You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Direct API access example for POS UI Extensions (#2939)
### Background
This PR addresses an issue with the `DirectApiRequestBody` import in the Point of Sale UI extensions examples.
### Solution
Fixed the import of `DirectApiRequestBody` in both TypeScript and React examples by:
- Moving `DirectApiRequestBody` from a regular import to a type-only import
- Using the proper `import type` syntax to ensure it's only used for type checking
This change ensures proper type usage without importing unnecessary runtime code.
### 🎩
- Verified that the examples still compile correctly
- Confirmed that the GraphQL mutation formatting is consistent
### Checklist
- [ ] I have 🎩'd these changes
- [ ] I have updated relevant documentation
Copy file name to clipboardExpand all lines: packages/ui-extensions/docs/surfaces/point-of-sale/staticPages/examples/direct-api-access/direct-api-access.ts
Copy file name to clipboardExpand all lines: packages/ui-extensions/docs/surfaces/point-of-sale/staticPages/examples/direct-api-access/direct-api-access.tsx
0 commit comments