Skip to content

Commit 54c54f6

Browse files
committed
refactor(react-native): use interface over inline const definition for better TypeScript handling
1 parent bb4597f commit 54c54f6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/react-native/types_DEPRECATED/src/private/assets/AssetRegistry.d.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface PackagerAsset {
2929
*
3030
* Most apps do not use this directly — assets are handled through `<Image>`.
3131
*/
32-
export declare const AssetRegistry: {
32+
export interface AssetRegistry {
3333
/**
3434
* Register an asset. Returns the asset ID.
3535
*/
@@ -39,4 +39,4 @@ export declare const AssetRegistry: {
3939
* Retrieve a registered asset by ID.
4040
*/
4141
getAssetByID(assetId: number): PackagerAsset;
42-
};
42+
}

0 commit comments

Comments
 (0)