File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ export class EnhancedResource<T extends ResourceShape<any>> {
194
194
const props = this . type . Props ;
195
195
if ( ! props ) {
196
196
throw new Error (
197
- `${ this . name } has no props declared. Decorate with @RegisterResource or a GraphQL type decorator.` ,
197
+ `${ this . name } has no props declared.\n\nDecorate with @RegisterResource or a GraphQL type decorator and move it to a file named: *.dto.ts .` ,
198
198
) ;
199
199
}
200
200
return new Set < keyof T [ 'prototype' ] & string > ( props ) ;
@@ -205,7 +205,7 @@ export class EnhancedResource<T extends ResourceShape<any>> {
205
205
const props = this . type . SecuredProps ;
206
206
if ( ! props ) {
207
207
throw new Error (
208
- `${ this . name } has no props declared. Decorate with @RegisterResource or a GraphQL type decorator.` ,
208
+ `${ this . name } has no props declared.\n\nDecorate with @RegisterResource or a GraphQL type decorator and move it to a file named: *.dto.ts .` ,
209
209
) ;
210
210
}
211
211
return new Set < SecuredResourceKey < T , false > > ( props as any ) ;
You can’t perform that action at this time.
0 commit comments