Fixes and adjustments to demo
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export * from './lib/shared-dto';
|
||||
@@ -0,0 +1,7 @@
|
||||
import { sharedDto } from './shared-dto';
|
||||
|
||||
describe('sharedDto', () => {
|
||||
it('should work', () => {
|
||||
expect(sharedDto()).toEqual('shared-dto');
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
import { Post } from '@shared/prisma-generated/src/types';
|
||||
|
||||
export function sharedDto(): string {
|
||||
return 'shared-dto';
|
||||
}
|
||||
|
||||
export type PostDto = Omit<Post, 'id' | 'createdAt' | 'updatedAt'>;
|
||||
|
||||
export type UpdatePostDto = Partial<PostDto>;
|
||||
Reference in New Issue
Block a user