@types/react-typing-animation
TypeScript icon, indicating that this package has built-in type declarations

1.6.6 • Public • Published

Installation

npm install --save @types/react-typing-animation

Summary

This package contains type definitions for react-typing-animation (https://github.com/notadamking/react-typing-animation#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-typing-animation.

index.d.ts

import { Component } from "react";

export interface TypingProps {
    children: React.ReactNode;
    className?: string | undefined;
    cursorClassName?: string | undefined;
    cursor?: React.ReactNode | undefined;
    hideCursor?: boolean | undefined;
    speed?: number | undefined;
    startDelay?: number | undefined;
    loop?: boolean | undefined;
    onStartedTyping?: (() => void) | undefined;
    onBeforeType?: (() => void) | undefined;
    onAfterType?: (() => void) | undefined;
    onFinishedTyping?: (() => void) | undefined;
}

declare namespace Typing {
    interface BackspaceProperties {
        count?: number | undefined;
        delay?: number | undefined;
        speed?: number | undefined;
    }
    class Backspace extends Component<BackspaceProperties> {}

    interface DelayProperties {
        ms: number;
    }
    class Delay extends Component<DelayProperties> {}

    interface SpeedProperties {
        ms: number;
    }
    class Speed extends Component<SpeedProperties> {}

    interface ResetProperties {
        count?: number | undefined;
        delay?: number | undefined;
        speed?: number | undefined;
    }
    class Reset extends Component<ResetProperties> {}
}

declare class Typing extends Component<TypingProps> {}

export default Typing;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Haseeb Majid.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.6.6257ts5.6
1.6.6257latest
1.6.6257ts4.5
1.6.6257ts4.6
1.6.6257ts4.7
1.6.6257ts4.8
1.6.6257ts4.9
1.6.6257ts5.0
1.6.6257ts5.1
1.6.6257ts5.2
1.6.6257ts5.3
1.6.6257ts5.4
1.6.6257ts5.5
1.6.6257ts5.7
1.6.264ts2.8
1.6.264ts2.9
1.6.264ts3.0
1.6.264ts3.1
1.6.264ts3.2
1.6.264ts3.3
1.6.264ts3.4
1.6.264ts3.5
1.6.36ts3.6
1.6.36ts3.7
1.6.36ts3.8
1.6.36ts3.9
1.6.36ts4.0
1.6.36ts4.1
1.6.36ts4.2
1.6.36ts4.3
1.6.36ts4.4

Version History

VersionDownloads (Last 7 Days)Published
1.6.6257
1.6.50
1.6.40
1.6.36
1.6.264
1.6.10
1.6.00

Package Sidebar

Install

npm i @types/react-typing-animation

Weekly Downloads

254

Version

1.6.6

License

MIT

Unpacked Size

5.34 kB

Total Files

5

Last publish

Collaborators

  • types