10 lines
141 B
TypeScript
10 lines
141 B
TypeScript
let fetchRequest: typeof fetch
|
|
|
|
try {
|
|
fetchRequest = fetch
|
|
} catch {
|
|
fetchRequest = require('node-fetch')
|
|
}
|
|
|
|
export default fetchRequest
|