Are there no limits to Javascript/Typescript file extensions? [closed]

I see people using extensions like .d.ts, .schema.ts, .route.ts, routes.ts and basically anything and everything, so I was wondering if there is no limit to the extensions you can give to your files in typescript/javascript (I’ve seen people do this with javascript too). So someone kindly explain what are these extensions and how to use them.

Thank you.