@apps-in-toss/framework 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -147,22 +147,24 @@ declare function useGeolocation({ accuracy, distanceInterval, timeInterval }: Us
147
147
  */
148
148
  declare function useWaitForReturnNavigator<T extends Record<string, object | undefined>>(): <RouteName extends keyof T>(route: RouteName, params?: T[RouteName]) => Promise<void>;
149
149
 
150
- declare function useTopNavigation(): {
151
- addAccessoryButton: (button: {
152
- title: string;
153
- icon: {
154
- source: {
155
- uri: string;
156
- };
157
- name?: never;
158
- } | {
159
- name: string;
160
- source?: never;
150
+ interface AccessoryButton {
151
+ id: string;
152
+ icon: {
153
+ source: {
154
+ uri: string;
161
155
  };
162
- id: string;
163
- onPress?: () => void;
164
- disabled?: boolean;
165
- } | undefined) => void;
156
+ name?: never;
157
+ } | {
158
+ name: string;
159
+ source?: never;
160
+ };
161
+ title: string;
162
+ onPress?: () => void;
163
+ disabled?: boolean;
164
+ }
165
+
166
+ declare function useTopNavigation(): {
167
+ addAccessoryButton: (button: AccessoryButton) => void;
166
168
  removeAccessoryButton: () => void;
167
169
  };
168
170
 
package/dist/index.d.ts CHANGED
@@ -147,22 +147,24 @@ declare function useGeolocation({ accuracy, distanceInterval, timeInterval }: Us
147
147
  */
148
148
  declare function useWaitForReturnNavigator<T extends Record<string, object | undefined>>(): <RouteName extends keyof T>(route: RouteName, params?: T[RouteName]) => Promise<void>;
149
149
 
150
- declare function useTopNavigation(): {
151
- addAccessoryButton: (button: {
152
- title: string;
153
- icon: {
154
- source: {
155
- uri: string;
156
- };
157
- name?: never;
158
- } | {
159
- name: string;
160
- source?: never;
150
+ interface AccessoryButton {
151
+ id: string;
152
+ icon: {
153
+ source: {
154
+ uri: string;
161
155
  };
162
- id: string;
163
- onPress?: () => void;
164
- disabled?: boolean;
165
- } | undefined) => void;
156
+ name?: never;
157
+ } | {
158
+ name: string;
159
+ source?: never;
160
+ };
161
+ title: string;
162
+ onPress?: () => void;
163
+ disabled?: boolean;
164
+ }
165
+
166
+ declare function useTopNavigation(): {
167
+ addAccessoryButton: (button: AccessoryButton) => void;
166
168
  removeAccessoryButton: () => void;
167
169
  };
168
170