forked from trent_larson/crowd-funder-for-time-pwa
- Add useDefineForClassFields for class field initialization - Remove test-playwright from includes - Add tsconfig.node.json reference - Remove redundant node_modules exclude
21 lines
546 B
TypeScript
21 lines
546 B
TypeScript
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>;
|
|
}
|