Created
September 14, 2020 21:59
-
-
Save lightningspirit/35b1e0898de660af65c53a58f6c54563 to your computer and use it in GitHub Desktop.
Typescript typings for react-lorem-ipsum
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module "react-lorem-ipsum" { | |
import React from "react" | |
interface AvatarProps { | |
gender?: "all" | "male" | "female" | |
className?: string | |
width?: number | |
height?: number | |
alt?: string | |
} | |
interface LoremIpsumProps { | |
p?: number | |
avgWordsPerSentence?: number | |
avgSentencesPerParagraph?: number | |
startWithLoremIpsum?: boolean | |
} | |
export function loremIpsum(args: LoremIpsumProps): string | |
export function name(gender: "male" | "female" | "all"): string | |
export function surname(): string | |
export function username(): string | |
export class Avatar extends React.Component<AvatarProps> {} | |
export class LoremIpsum extends React.Component<LoremIpsumProps> {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment