Files
Fluxup_PAP/node_modules/@expo/devcert/src/platforms/index.ts
2026-03-10 16:18:05 +00:00

15 lines
582 B
TypeScript

import { Options } from '../index';
export interface Platform {
addToTrustStores(certificatePath: string, options?: Options): Promise<void>;
removeFromTrustStores(certificatePath: string): Promise<void>;
addDomainToHostFileIfMissing(domain: string): Promise<void>;
deleteProtectedFiles(filepath: string): Promise<void>;
readProtectedFile(filepath: string): Promise<string>;
writeProtectedFile(filepath: string, contents: string): Promise<void>;
}
const PlatformClass = require(`./${ process.platform }`).default;
export default new PlatformClass() as Platform;