bfg-common 1.2.165 → 1.2.166

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.
@@ -1,4 +1,25 @@
1
- export interface UI_I_StackFetchUrls<T> {
2
- url: string
3
- options: T
4
- }
1
+ import type { UI_T_Method } from '~/models/composables/useMyFetch/types'
2
+
3
+ export interface UI_I_Response<Data, Error> {
4
+ data: globalThis.Ref<Data>
5
+ error: globalThis.Ref<Error>
6
+ refresh: any
7
+ }
8
+
9
+ export interface UI_I_Options {
10
+ method: UI_T_Method
11
+ body?: any
12
+ query?: any
13
+ key?: any
14
+ initialCache?: boolean
15
+ headers?: any
16
+ onRequest?: () => void
17
+ onResponse?: (response: any) => void
18
+ onResponseError?: (response: any) => void
19
+ onRequestError?: (error: any) => void
20
+ }
21
+
22
+ export interface UI_I_StackFetchUrls {
23
+ url: string
24
+ options: UI_I_Options
25
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.2.165",
4
+ "version": "1.2.166",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",