Skip to content

[type-compiler] exclude declare statements #601

@marcj

Description

@marcj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions