Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 2e081df

Browse files
authored
Merge pull request #57 from AckeeCZ/fix/extend-sentry
🐛 Fix extend sentry import
2 parents 7da4bf4 + 02b9d7d commit 2e081df

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

sentry/index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { extendSentry } from '../dist/sentry'
2+
3+
export default extendSentry
4+
5+
declare module 'cosmas/sentry' {
6+
export = extendSentry
7+
}

sentry/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// This folder and this file is to simplify sentry include so you can import it
2+
// like so: import('cosmas/sentry')
3+
4+
module.exports.default = require('../dist/sentry').extendSentry

0 commit comments

Comments
 (0)