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,47 @@
import { PlatformService } from '../PlatformService';
export class PyWebViewPlatformService implements PlatformService {
async readFile(path: string): Promise<string> {
throw new Error('Not implemented');
}
async writeFile(path: string, content: string): Promise<void> {
throw new Error('Not implemented');
}
async deleteFile(path: string): Promise<void> {
throw new Error('Not implemented');
}
async listFiles(directory: string): Promise<string[]> {
throw new Error('Not implemented');
}
async takePicture(): Promise<string> {
throw new Error('Not implemented');
}
async pickImage(): Promise<string> {
throw new Error('Not implemented');
}
isCapacitor(): boolean {
return false;
}
isElectron(): boolean {
return false;
}
isPyWebView(): boolean {
return true;
}
isWeb(): boolean {
return false;
}
async handleDeepLink(url: string): Promise<void> {
throw new Error('Not implemented');
}
}