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:
Matthew Raymer
2025-04-06 06:58:25 +00:00
parent e7e9b4d27c
commit 2c6bfc30bc
7 changed files with 327 additions and 0 deletions

View 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>;
}