first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

View File

@@ -0,0 +1,86 @@
export type URL = string;
export type InfoOptions = any;
export type ReadingOptions = any;
export type WritingOptions = any;
export type DeletingOptions = any;
export type RelocatingOptions = any;
export type MakeDirectoryOptions = any;
export type DownloadOptionsLegacy = any;
export type UploadOptions = any;
export type Int64 = number;
export async function getInfoAsync(url: URL, options: InfoOptions): Promise<any> {}
export async function readAsStringAsync(url: URL, options: ReadingOptions): Promise<string> {
return '';
}
export async function writeAsStringAsync(
url: URL,
string: string,
options: WritingOptions
): Promise<any> {}
export async function deleteAsync(url: URL, options: DeletingOptions): Promise<any> {}
export async function moveAsync(options: RelocatingOptions): Promise<any> {}
export async function copyAsync(options: RelocatingOptions): Promise<any> {}
export async function makeDirectoryAsync(url: URL, options: MakeDirectoryOptions): Promise<any> {}
export async function readDirectoryAsync(url: URL): Promise<string[]> {
return [];
}
export async function downloadAsync(
sourceUrl: URL,
localUrl: URL,
options: DownloadOptionsLegacy
): Promise<any> {}
export async function uploadAsync(
targetUrl: URL,
localUrl: URL,
options: UploadOptions
): Promise<any> {}
export async function uploadTaskStartAsync(
targetUrl: URL,
localUrl: URL,
uuid: string,
options: UploadOptions
): Promise<any> {}
export async function downloadResumableStartAsync(
sourceUrl: URL,
localUrl: URL,
uuid: string,
options: DownloadOptionsLegacy,
resumeDataString: string | undefined
): Promise<any> {}
export async function downloadResumablePauseAsync(id: string): Promise<{
[key: string]: string | undefined;
}> {
return {};
}
export async function networkTaskCancelAsync(id: string): Promise<any> {}
export async function getFreeDiskStorageAsync(): Promise<Int64> {
return 0;
}
export async function getTotalDiskCapacityAsync(): Promise<number> {
return 0;
}

76
node_modules/expo-file-system/mocks/FileSystem.ts generated vendored Normal file
View File

@@ -0,0 +1,76 @@
export type URL = string;
export type FileSystemPath = any;
export type DownloadOptions = any;
export type InfoOptions = any;
export type TypedArray = any;
export type CreateOptions = any;
export const documentDirectory = 'file:///mock/document/';
export const cacheDirectory = 'file:///mock/cache/';
export const bundleDirectory = 'file:///mock/bundle/';
export const totalDiskSpace = 1000000000;
export const availableDiskSpace = 500000000;
export function info(url: URL): any {}
export async function downloadFileAsync(
url: URL,
to: FileSystemPath,
options: DownloadOptions | undefined
): Promise<any> {}
export async function pickDirectoryAsync(initialUri?: string): Promise<any> {}
export async function pickFileAsync(initialUri?: string, mimeType?: string): Promise<any> {}
export class FileSystemFile {
uri: string;
exists: boolean = false;
constructor(uri: string) {
this.uri = uri;
}
validatePath(): any {}
textSync(): any {}
base64Sync(): any {}
bytesSync(): any {}
open(): any {}
info(options: InfoOptions | undefined): any {}
write(content: string | TypedArray): any {}
delete(): any {}
create(options: CreateOptions | undefined): any {}
copy(to: FileSystemPath): any {}
move(to: FileSystemPath): any {}
rename(newName: string): any {}
async text(): Promise<any> {}
async base64(): Promise<any> {}
async bytes(): Promise<any> {}
}
export class FileSystemFileHandle {
readBytes(bytes: number): any {}
writeBytes(bytes: TypedArray): any {}
close(): any {}
}
export class FileSystemDirectory {
uri: string;
exists: boolean = false;
constructor(uri: string) {
this.uri = uri;
}
info(): any {}
validatePath(): any {}
delete(): any {}
create(options: CreateOptions | undefined): any {}
copy(to: FileSystemPath): any {}
move(to: FileSystemPath): any {}
rename(newName: string): any {}
listAsRecords(): any {}
createFile(name: string, mimeType: string | null): any {}
createDirectory(name: string): any {}
}