File tree Expand file tree Collapse file tree
packages/plugins/plugin-msw/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
118118export const listSpacesExample : ListSpacesResponse = {
119+ success : true ,
119120 data : [
120121 spaceCreatedResponse ,
121122 {
@@ -768,6 +769,7 @@ export const compileManifestExample: CompileManifestRequest = {
768769export 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
Original file line number Diff line number Diff 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' ;
You can’t perform that action at this time.
0 commit comments