( optionsOrEventBus?: PluginOptions | InstanceType<VueConstructor>, Vue = _Vue )
| 13 | Vue?: VueConstructor |
| 14 | ): ReturnType<typeof ToastInterface>; |
| 15 | function createToastInterface( |
| 16 | optionsOrEventBus?: PluginOptions | InstanceType<VueConstructor>, |
| 17 | Vue = _Vue |
| 18 | ) { |
| 19 | const isVueInstance = (obj: unknown): obj is InstanceType<VueConstructor> => |
| 20 | obj instanceof Vue; |
| 21 | if (isVueInstance(optionsOrEventBus)) { |
| 22 | return ToastInterface(Vue, { eventBus: optionsOrEventBus }, false); |
| 23 | } |
| 24 | return ToastInterface(Vue, optionsOrEventBus, true); |
| 25 | } |
| 26 | |
| 27 | const VueToastificationPlugin: PluginFunction<PluginOptions> = ( |
| 28 | Vue, |
no test coverage detected
searching dependent graphs…