@legit-sdk/react 0.2.11 → 0.2.12
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/LegitProvider.d.ts +3 -2
- package/dist/index.d.ts +6 -3
- package/dist/index.js +61 -61
- package/dist/useLegitFile.d.ts +4 -2
- package/package.json +1 -1
package/dist/useLegitFile.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
type HistoryItem = import('@legit-sdk/core').HistoryItem;
|
|
2
|
+
type OpenLegitFs = (typeof import('@legit-sdk/core'))['openLegitFs'];
|
|
2
3
|
export interface UseLegitFileOptions {
|
|
3
4
|
initialData?: string;
|
|
4
5
|
}
|
|
@@ -9,6 +10,7 @@ export type UseLegitFileReturn = {
|
|
|
9
10
|
getPastState: (commitHash: string) => Promise<string>;
|
|
10
11
|
loading: boolean;
|
|
11
12
|
error?: Error;
|
|
12
|
-
legitFs: Awaited<ReturnType<
|
|
13
|
+
legitFs: Awaited<ReturnType<OpenLegitFs>> | null;
|
|
13
14
|
};
|
|
14
15
|
export declare function useLegitFile(path: string, options?: UseLegitFileOptions): UseLegitFileReturn;
|
|
16
|
+
export {};
|