@pokedex/utils
Advanced tools
+2
-2
| { | ||
| "name": "@pokedex/utils", | ||
| "version": "1.3.5", | ||
| "version": "1.3.6", | ||
| "description": "", | ||
@@ -35,3 +35,3 @@ "keywords": [], | ||
| "homepage": "https://github.com/erashu212/pokedex#readme", | ||
| "gitHead": "05a5bf8335934504083c310d968553fcfe559634", | ||
| "gitHead": "ac2aee5c0d629f675530f2b537d5371347deecea", | ||
| "dependencies": { | ||
@@ -38,0 +38,0 @@ "axios": "^1.6.2", |
| export * from './use-fetch'; | ||
| //# sourceMappingURL=index.d.ts.map |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"} |
| interface FetchResult<T> { | ||
| data: T | null; | ||
| loading: boolean; | ||
| error: string | null; | ||
| } | ||
| interface FetchOptions { | ||
| method?: string; | ||
| headers?: Record<string, string>; | ||
| body?: string; | ||
| } | ||
| declare const useFetch: <T extends object = {}>(url: string, options?: FetchOptions) => FetchResult<T>; | ||
| export default useFetch; | ||
| //# sourceMappingURL=use-fetch.d.ts.map |
| {"version":3,"file":"use-fetch.d.ts","sourceRoot":"","sources":["../../lib/use-fetch.tsx"],"names":[],"mappings":"AAEA,UAAU,WAAW,CAAC,CAAC;IACrB,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AACD,UAAU,YAAY;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,QAAQ,+BACP,MAAM,YACD,YAAY,mBAgCvB,CAAC;AAEF,eAAe,QAAQ,CAAC"} |
| export * from './use-fetch'; | ||
| //# sourceMappingURL=index.d.ts.map |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"} |
| interface FetchResult<T> { | ||
| data: T | null; | ||
| loading: boolean; | ||
| error: string | null; | ||
| } | ||
| interface FetchOptions { | ||
| method?: string; | ||
| headers?: Record<string, string>; | ||
| body?: string; | ||
| } | ||
| declare const useFetch: <T extends object = {}>(url: string, options?: FetchOptions) => FetchResult<T>; | ||
| export default useFetch; | ||
| //# sourceMappingURL=use-fetch.d.ts.map |
| {"version":3,"file":"use-fetch.d.ts","sourceRoot":"","sources":["../../lib/use-fetch.tsx"],"names":[],"mappings":"AAEA,UAAU,WAAW,CAAC,CAAC;IACrB,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AACD,UAAU,YAAY;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,QAAQ,+BACP,MAAM,YACD,YAAY,mBAgCvB,CAAC;AAEF,eAAe,QAAQ,CAAC"} |
| "use strict"; |
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":""} |
13605
-13.62%21
-34.37%172
-13.57%