Skip to content

Commit

Permalink
fix: fix types rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 13, 2021
1 parent cfc136f commit 21c4d7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Module } from '@nuxt/types'
import destr from 'destr'
import { nanoid } from 'nanoid'
import { name, version } from '../package.json'
Expand Down Expand Up @@ -61,7 +62,7 @@ async function _telemetryModule (nuxt) {
profile(nuxt, t)
}

async function telemetryModule () {
const telemetryModule: Module<TelemetryOptions> = async function () {
try {
await _telemetryModule(this.nuxt)
} catch (err) {
Expand Down Expand Up @@ -118,6 +119,6 @@ function profile (nuxt: Nuxt, t: Telemetry) {
})
}

telemetryModule.meta = { name, version }
(telemetryModule as any).meta = { name, version }

export default telemetryModule

0 comments on commit 21c4d7c

Please sign in to comment.