Skip to content

Commit

Permalink
fix: 🐛 fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
TouchSek committed Mar 21, 2021
1 parent 875e9e8 commit 559f491
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "v-timers",
"version": "0.0.2",
"version": "0.0.3",
"license": "MIT",
"description": "Mixin to manage your intervals in Vue.js",
"main": "dist/v-timers.umd.js",
Expand Down
23 changes: 13 additions & 10 deletions types/vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ import { VTimers } from './';
import Vue from "vue";

interface ITimers {
name: string
callback: Function | string
autoStart: boolean
repead: boolean
immediate: boolean
time: number
isSwitchTab: boolean
name: string
callback: Function | string
autoStart: boolean
repead: boolean
immediate: boolean
time: number
isSwitchTab: boolean
}
interface TimersInterface {
[key: string]: ITimers
}

declare module 'vue/types/vue' {
Expand All @@ -22,7 +25,7 @@ declare module 'vue/types/vue' {
}

declare module 'vue/types/options' {
interface ComponentOptions<V extends Vue> {
timers?: {[key: string]: VTimers}
}
interface ComponentOptions<V extends Vue> {
timers?: TimersInterface
}
}

0 comments on commit 559f491

Please sign in to comment.