May 09 10 - 10 AM
May 09 10 - 10 AM
retryCount: number
retryDelay?: number
retryOn?: number[]
}
type ResponseFake = {
body: object,
status: number
};
type FetchFake = {
(url:string, len?:number):Promise<ResponseFake>;
};
interface Logger {
log: (message: string) => void;
info: (message: string) => void;
error: (message: string) => void;
warn: (message: string) => void;
}
/*TSCONFIG*/
{
"compilerOptions": {
"target": "ES6", // Output ES6 code
"module": "ES6", // Use ES6 module syntax (or "commonjs" if
you're using Node)
"strict": true, // Enable all strict type checks
"lib": ["dom","ES2016"],
"esModuleInterop": true, // Enable default import compatibility
"moduleResolution": "node", // Helps with resolving modules like Node.js
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true // Skip type checking of declaration files
for faster builds
},
"include": ["./**/*"], // Include all TS files in src/
"exclude": ["node_modules", "dist"] // Don't compile these folders
}