Add type definitions for social link

This commit is contained in:
Ariful Alam 2022-03-26 18:09:04 +06:00
parent 263984b0a4
commit 59a9a2fac4

71
types/index.d.ts vendored
View File

@ -4,7 +4,7 @@
import { Component } from 'react';
interface github {
interface Github {
/**
* GitHub org/user name
*/
@ -13,17 +13,17 @@ interface github {
/**
* stars | updated
*/
sortBy: string;
sortBy?: string;
/**
* How many projects to display
*/
limit: number;
limit?: number;
/**
* Exclude projects option
*/
exclude: {
exclude?: {
/**
* Forked projects will not be displayed if set to true
*/
@ -38,18 +38,75 @@ interface github {
};
}
interface config {
interface Social {
/**
* LinkedIn
*/
linkedin?: string;
/**
* Twitter
*/
twitter?: string;
/**
* Facebook
*/
facebook?: string;
/**
* Dribbble
*/
dribbble?: string;
/**
* Behance
*/
behance?: string;
/**
* Medium
*/
medium?: string;
/**
* dev.to
*/
devto?: string;
/**
* Website
*/
website?: string;
/**
* Phone
*/
phone?: string;
/**
* Email
*/
email?: string;
}
interface Config {
/**
* GitHub Config
*/
github: github;
github: Github;
/**
* Social links
*/
social?: Social;
}
interface GitProfileProps {
/**
* Config values
*/
config: config;
config: Config;
}
declare class GitProfile extends Component<GitProfileProps> {}