You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clearly we don't always think the triple slash reference is needed, and at somepoint we're confusing an export-assigned-namespace with a referenced-augmentation or something.
This issue came up as part of a real component library breaking for its consumers, demanding
@emotion/core
.I was able to get a much smaller reproduction ready to show the behaviour.
TypeScript Version: 3.7.2 & 3.8.0-dev.20191125
Search Terms:
triple slash reference declaration
Steps to reproduce
clone https://github.com/AviVahl/ts-declaration-reference
yarn
yarn build
Expected behavior:
dist/inferred-comp-export.d.ts
should not contain a reference to@emotion/core
..Actual behavior:
dist/inferred-comp-export.d.ts
contains:/// <reference types="@emotion/core" />
Playground Link:
Cannot reproduce in playground. It has to do with declaration emit and third party augmenting package.
Related Issues:
#34749
#11849
Observations:
@emotion/core/types/index.d.ts
contains:commenting it out removes the triple slash from emit.
export * from '@emotion/core';
fromsrc/some-other-file.ts
gets rid of the triple slash reference.@storybook/react
, which imports@storybook/theming
, which re-exports@emotion/core
.The text was updated successfully, but these errors were encountered: