Skip to content

Commit

Permalink
chore: Export DeepPartialV2 from index of @fluentui/merge-styles
Browse files Browse the repository at this point in the history
  • Loading branch information
gyz0072004 committed Feb 10, 2025
1 parent 0274540 commit 4f08a17
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "Export DeepPartialV2 type definition",
"packageName": "@fluentui/merge-styles",
"email": "[email protected]",
"dependentChangeType": "patch"
}
8 changes: 6 additions & 2 deletions packages/merge-styles/etc/merge-styles.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ export function concatStyleSets<TStyleSet1, TStyleSet2, TStyleSet3, TStyleSet4,
// @public
export function concatStyleSets(...styleSets: (IStyleSet | MissingOrShadowConfig_2)[]): IConcatenatedStyleSet<any>;

// Warning: (ae-forgotten-export) The symbol "DeepPartialV2" needs to be exported by the entry point index.d.ts
//
// @public
export function concatStyleSetsWithProps<TStyleProps, TStyleSet extends IStyleSetBase>(styleProps: TStyleProps, ...allStyles: (IStyleFunctionOrObject<TStyleProps, TStyleSet> | undefined)[]): DeepPartialV2<TStyleSet>;

Expand All @@ -48,6 +46,12 @@ export type DeepPartial<T> = {
[P in keyof T]?: T[P] extends Array<infer U> ? Array<DeepPartial<U>> : T[P] extends object ? DeepPartial<T[P]> : T[P];
};

// Warning: (ae-forgotten-export) The symbol "IDeepPartialArray" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "DeepPartialObject" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export type DeepPartialV2<T> = T extends Function ? T : T extends Array<infer U> ? IDeepPartialArray<U> : T extends object ? DeepPartialObject<T> : T;

// @public (undocumented)
export const DEFAULT_SHADOW_CONFIG: ShadowConfig;

Expand Down
2 changes: 1 addition & 1 deletion packages/merge-styles/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type { IKeyframes } from './IKeyframes';
export type { IStyleFunction, IStyleFunctionOrObject } from './IStyleFunction';

// eslint-disable-next-line @typescript-eslint/no-deprecated
export type { DeepPartial } from './DeepPartial';
export type { DeepPartial, DeepPartialV2 } from './DeepPartial';

// eslint-disable-next-line @typescript-eslint/no-deprecated
export type { IConcatenatedStyleSet, IProcessedStyleSet, IStyleSet, IStyleSetBase, Omit } from './IStyleSet';
Expand Down

0 comments on commit 4f08a17

Please sign in to comment.