mirror of
https://github.com/aditama-labs/nest-autocrud.git
synced 2024-11-22 03:16:21 +00:00
wip: advanced type safe protection
This commit is contained in:
parent
d393cb53f6
commit
b456c5cc8b
@ -1,6 +1,7 @@
|
||||
import { PrismaService } from '../prisma.service';
|
||||
import { PrismaListProcess } from '../processes/list.process';
|
||||
|
||||
export interface PrismaModuleOptions {
|
||||
delegate: (prisma: PrismaService) => any;
|
||||
processList?: any;
|
||||
processList: typeof PrismaListProcess;
|
||||
}
|
||||
|
@ -1,15 +1,12 @@
|
||||
import { PrismaProcess } from '@autocrud/prisma/processes/prisma.process';
|
||||
import { ListProcess } from '@autocrud/skeleton/processes/list.process';
|
||||
|
||||
export class AppListProcess extends PrismaProcess implements ListProcess {
|
||||
private data: any;
|
||||
import { PrismaListProcess } from '@autocrud/prisma/processes/list.process';
|
||||
|
||||
export class AppListProcess extends PrismaListProcess {
|
||||
async process(): Promise<any> {
|
||||
console.log('Hello World');
|
||||
super.process();
|
||||
}
|
||||
|
||||
result() {
|
||||
return this.data;
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user