Fixes and adjustments to demo

This commit is contained in:
Toni Koskinen
2026-03-27 10:37:42 +02:00
parent 51a4b84476
commit 4de890ba77
44 changed files with 1076 additions and 104 deletions

View File

@@ -0,0 +1 @@
export * from './lib/shared-dto';

View File

@@ -0,0 +1,7 @@
import { sharedDto } from './shared-dto';
describe('sharedDto', () => {
it('should work', () => {
expect(sharedDto()).toEqual('shared-dto');
});
});

View File

@@ -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>;