Skip to content

Commit 86b240b

Browse files
committed
feat(examples): add success property to listSpacesExample and compileManifestResultExample; update isolation and resolutionStrategy to use 'as const'
1 parent d7e434a commit 86b240b

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

examples/features/hub-management-example.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export const spaceCreatedResponse = {
9696
slug: 'sales-team',
9797
ownerId: 'user_abc123',
9898
runtime: {
99-
isolation: 'shared_schema',
99+
isolation: 'shared_schema' as const,
100100
quotas: {
101101
maxUsers: 50,
102102
maxStorage: 107374182400,
@@ -106,7 +106,7 @@ export const spaceCreatedResponse = {
106106
bom: {
107107
tenantId: 'tenant_abc123',
108108
dependencies: [],
109-
resolutionStrategy: 'override',
109+
resolutionStrategy: 'override' as const,
110110
},
111111
createdAt: '2024-01-01T00:00:00Z',
112112
updatedAt: '2024-01-01T00:00:00Z',
@@ -116,6 +116,7 @@ export const spaceCreatedResponse = {
116116
* Listing all spaces for an organization
117117
*/
118118
export const listSpacesExample: ListSpacesResponse = {
119+
success: true,
119120
data: [
120121
spaceCreatedResponse,
121122
{
@@ -768,6 +769,7 @@ export const compileManifestExample: CompileManifestRequest = {
768769
export const compileManifestResultExample: CompileManifestResponse = {
769770
success: true,
770771
data: {
772+
success: true,
771773
buildId: 'build_abc123',
772774
timestamp: '2024-01-15T12:00:00Z',
773775
duration: 5420, // 5.4 seconds

packages/plugins/plugin-msw/src/msw-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ export class MSWPlugin implements Plugin {
463463
http.get(`${baseUrl}/meta/:type/:name`, async ({ params }) => {
464464
try {
465465
return HttpResponse.json(
466-
await protocol.getMetaItem({ type: params.type as string, name: params.name as string })
466+
await protocol.getMetaItem({ type: params.type as string, name: params.name as string } as any)
467467
);
468468
} catch (error) {
469469
const message = error instanceof Error ? error.message : 'Unknown error';

0 commit comments

Comments
 (0)