#How to split big service file ?

2 messages · Page 1 of 1 (latest)

topaz nest
#

I have a big parts.sevice.ts file (~800 lines), and would like to split it between several smaller files to be faster to navigate to the right method and improve readability.

What is the best way to do that ?

I thought about create a create.parts.service.ts :

createPart = (prisma: PrismaService) => {
...
}

then call it in my main parts.service file

wide cloud
#

I want to know the solution too