Description
Area
typescript
Environment
Not Applicable
Current Behavior
Using "moduleResolution": "bundler"
in tsconfig.json
import type { DeepPartialV2 } from '@fluentui/merge-styles';
Throws a type error. This is because:
- There is no package map enabling this type to be deep imported
index.d.ts
doesn't export the type
Expected Behavior
import type { DeepPartialV2 } from '@fluentui/merge-styles';
Doesn't throw a type error.
Reproduction
This is not applicable.
Steps to reproduce
- Have a tsconfig.json with
moduleResolution: bundler
- Write some code that does
import type { DeepPartialV2 } from '@fluentui/merge-styles';
Suggested severity
Medium - Has workaround
Products/sites affected
N/A
Are you willing to submit a PR to fix?
yes
Validations
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.