From cc73dae0e327a88418cae342efe8971d517f0528 Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Tue, 29 Mar 2022 17:33:05 -0600 Subject: [PATCH] Update import for private type location for build results NOTE: this *will not* type-check until you have done a build, because it is the result of emitting types to the production build location. However, this matches the actual import location to which this type would be emitted. Since this is an internal-only type whose presence consumers should not rely on and which they should not use in any way, this is "safe" from a public API POV. --- test/types/component-test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/types/component-test.ts b/test/types/component-test.ts index 5d3d6f1a5..a4e32770e 100644 --- a/test/types/component-test.ts +++ b/test/types/component-test.ts @@ -5,7 +5,13 @@ import * as gc from '@glimmer/component'; // expect to be -- and this keeps us honest about the fact that if we *change* // this import location, we've broken any existing declarations published using // the current type signatures. -import { EmptyObject } from '@glimmer/component/addon/-private/component'; +// +// NOTE: this *will not* type-check until you have done a build, because it is +// the result of emitting types to the production build location. However, this +// matches the actual import location to which this type would be emitted. Since +// this is an internal-only type whose presence consumers should not rely on and +// which they should not use in any way, this is "safe" from a public API POV. +import { EmptyObject } from '@glimmer/component/dist/types/addon/-private/component'; const Component = gc.default;