Skip to content

Commit 88ab939

Browse files
authored
Fix build error by exporting a missing type from the framework package (#3922)
* export missing type from framework package * Change files
1 parent 97af685 commit 88ab939

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "export missing type from framework to fix build error in Popover",
4+
"packageName": "@fluentui-react-native/framework",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/framework/framework/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ export type { HasLayer, TokensThatAreAlsoProps, UseStyling } from './useStyling'
9696
export { buildProps, buildUseStyling } from './useStyling';
9797
export type { BuildProps, TokenSettings, TokensFromTheme, UseStylingOptions } from './useStyling';
9898
export { applyPropsToTokens, applyTokenLayers, buildUseTokens, customizable, patchTokens } from './useTokens';
99-
export type { UseTokens } from './useTokens';
99+
export type { UseTokens, CustomizableComponent } from './useTokens';

packages/framework/framework/src/useTokens.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export { applyTokenLayers, applyPropsToTokens, customizable, patchTokens } from
99

1010
// A hook function to build a set of tokens from a passed in theme as well as a cache object
1111
export type UseTokens<TTokens> = UseTokensCore<TTokens, Theme>;
12+
export type { CustomizableComponent } from '@fluentui-react-native/use-tokens';
1213

1314
export function buildUseTokens<TTokens>(...tokens: TokenSettings<TTokens>[]): UseTokens<TTokens> {
1415
return buildUseTokensCore(themeHelper.getComponentInfo, ...tokens);

0 commit comments

Comments
 (0)