feat: Add common package * Add isEdge, safeTry and dataCache to new common package * Add eslint and move prettier config * Fix yarn lock * Clean up tests * Add lint-staged config to common * Add missing dependencies Approved-by: Joakim Jäderberg
4 lines
124 B
TypeScript
4 lines
124 B
TypeScript
export const isEdge =
|
|
typeof (global as any).EdgeRuntime !== "undefined" ||
|
|
typeof (global as any).Deno !== "undefined"
|