Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Update import for private type location for build results
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chriskrycho committed Mar 29, 2022
1 parent 651fc70 commit cc73dae
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/types/component-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit cc73dae

Please sign in to comment.