forked from jsnbuchanan/crowd-funder-for-time-pwa
feat: update TypeScript config for platform services
- Add useDefineForClassFields for class field initialization - Remove test-playwright from includes - Add tsconfig.node.json reference - Remove redundant node_modules exclude
This commit is contained in:
20
src/services/PlatformService.ts
Normal file
20
src/services/PlatformService.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
export interface PlatformService {
|
||||
// File system operations
|
||||
readFile(path: string): Promise<string>;
|
||||
writeFile(path: string, content: string): Promise<void>;
|
||||
deleteFile(path: string): Promise<void>;
|
||||
listFiles(directory: string): Promise<string[]>;
|
||||
|
||||
// Camera operations
|
||||
takePicture(): Promise<string>;
|
||||
pickImage(): Promise<string>;
|
||||
|
||||
// Platform specific features
|
||||
isCapacitor(): boolean;
|
||||
isElectron(): boolean;
|
||||
isPyWebView(): boolean;
|
||||
isWeb(): boolean;
|
||||
|
||||
// Deep linking
|
||||
handleDeepLink(url: string): Promise<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user