Protect ts file content

Is there a way to protect the content of a TS file from my ionic project from being editable?

I believe that no, it’s not possible. Check this out: Is there a way to log the user once, have a valid session for some days, then block access to app until login again?