@mornya/react-social-libs
Version:
The project of React.js Social Share and Widget modules.
11 lines (10 loc) • 497 B
TypeScript
import React from 'react';
type RecordValue = string | string[] | number | boolean | undefined;
declare class BaseComponent<P, S> extends React.Component<P, S> {
mapToParam<T extends Record<string, RecordValue>>(prefix?: string | undefined, params?: T): string;
getUID(): string;
getDefaultMetaContent(): Social.IMetaContent;
getDefaultHashtags(keywords?: string | undefined): string[];
getHashtag(hashtags?: string[], indent?: string): string;
}
export default BaseComponent;