vue-socials
Version:
Social media share buttons and counts for Vue.js
58 lines (57 loc) • 2.38 kB
TypeScript
/**
* Hey!
*
* SVkontakteCount component used for Vkontakte social network
* @link https://vk.com
* @example https://vk.com/share.php?act=count&index=1&url=http
*/
declare global {
interface Window {
VK: {
Share?: {
count: TSVkontakteCallback;
};
callbacks?: {
[key: string]: TSVkontakteCallback;
};
};
}
}
export interface ISVkontakteCountShareOptions {
url?: string;
}
export declare type TSVkontakteCallback = (index: number, count: number) => void;
export interface ISVkontakteResult {
index: number;
count: number;
}
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {
handleVKResponse(index: number, count: number): void;
}, import("vue").DefineComponent<{
tag: {
type: (ObjectConstructor | StringConstructor)[];
default: string;
};
shareOptions: {
type: ObjectConstructor;
default: () => ISVkontakteCountShareOptions | (new (...args: any[]) => ISVkontakteCountShareOptions & object) | (() => ISVkontakteCountShareOptions) | ((new (...args: any[]) => ISVkontakteCountShareOptions & object) | (() => ISVkontakteCountShareOptions))[];
required: true;
};
}, unknown, import("../../mixins/BaseCount/BaseCount").TBaseCountDataOptions<ISVkontakteResult>, {
ariaLabel(): string;
}, {
handleResult(value: ISVkontakteResult): void;
handleError(value: string | Error | null): void;
handleLoading(value: boolean): void;
handleCount(count: number | undefined): void;
generateComponent(): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>;
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "loading" | "load")[], "error" | "loading" | "load", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
tag: string;
shareOptions: Record<string, any>;
} & {}>, {
tag: string;
shareOptions: Record<string, any>;
}>, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {}>, {}>;
export default _default;