Skip to content

Commit

Permalink
add "export" to all interfaces and types
Browse files Browse the repository at this point in the history
  • Loading branch information
orblazer committed Mar 28, 2019
1 parent d9ac39c commit d617380
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Vue, VueConstructor } from 'vue/types/vue'
import { PluginFunction } from "vue"

interface ToastObject {
export interface ToastObject {
// html element of the toast
el: HTMLElement,
// change text or html of the toast
Expand All @@ -10,12 +10,12 @@ interface ToastObject {
goAway: (delay?: number) => any
}

type ToastPosition = 'top-right' | 'top-center' | 'top-left' | 'bottom-right' | 'bottom-center' | 'bottom-left'
type ToastType = 'success' | 'info' | 'error' | 'default'
type ToastTheme = 'primary' | 'outline' | 'bubble'
type ToastIconPack = 'material' | 'fontawesome' | 'custom-class' | 'callback'
export type ToastPosition = 'top-right' | 'top-center' | 'top-left' | 'bottom-right' | 'bottom-center' | 'bottom-left'
export type ToastType = 'success' | 'info' | 'error' | 'default'
export type ToastTheme = 'primary' | 'outline' | 'bubble'
export type ToastIconPack = 'material' | 'fontawesome' | 'custom-class' | 'callback'

interface ToastAction {
export interface ToastAction {
/**
* name of action
*/
Expand Down Expand Up @@ -46,7 +46,7 @@ interface ToastAction {
onClick?: (e: any, toastObject: ToastObject) => any
}

interface ToastOptions {
export interface ToastOptions {
/**
* Position of the toast container (default: 'top-right')
*/
Expand Down Expand Up @@ -105,7 +105,7 @@ interface ToastOptions {
iconPack?: ToastIconPack|string
}

interface Toasted {
export interface Toasted {
/**
* Show a toast with success style
*
Expand Down Expand Up @@ -155,7 +155,7 @@ interface Toasted {
}

declare class ToastedPlugin {
static install: PluginFunction<never>
static install: PluginFunction<ToastOptions>
}

declare module 'vue/types/vue' {
Expand Down

0 comments on commit d617380

Please sign in to comment.