Skip to content

[Bug]: merge-styles DeepPartialV2 type missing export from index.d.ts #34617

@TheLarkInn

Description

@TheLarkInn

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

  1. Have a tsconfig.json with moduleResolution: bundler
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions