deepkit-framework icon indicating copy to clipboard operation
deepkit-framework copied to clipboard

[type-compiler] exclude declare statements

Open marcj opened this issue 7 months ago • 0 comments

e.g. https://github.com/epicweb-dev/epic-stack/blob/e70fee5a087954b1818234443ebc49a87b5ca7d0/app/utils/env.server.ts#L60


type ENV = ReturnType<typeof getEnv>

declare global {
	var ENV: ENV
	interface Window {
		ENV: ENV
	}
}

should be avoided as we don't need them at all at runtime

marcj avatar Jul 11 '24 18:07 marcj