2.0.6 • Published 5 months ago

@types/react-aria-live v2.0.6

Weekly downloads
1,621
License
MIT
Repository
github
Last release
5 months ago

Installation

npm install --save @types/react-aria-live

Summary

This package contains type definitions for react-aria-live (https://github.com/AlmeroSteyn/react-aria-live#readme).

Details

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

index.d.ts

// Type definitions for react-aria-live 2.0
// Project: https://github.com/AlmeroSteyn/react-aria-live#readme
// Definitions by: AJ Livingston <https://github.com/ajliv>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import * as React from 'react';

export class LiveAnnouncer extends React.Component {
    announcePolite(message: string, id?: string): void;
    announceAssertive(message: string, id?: string): void;
}

export const LiveMessage: React.FunctionComponent<{
    'aria-live': 'assertive' | 'polite';
    clearOnUnmount?: boolean | 'true' | 'false' | undefined;
    message: string;
}>;

export const LiveMessenger: React.FunctionComponent<{
    children(contextProps: {
        announceAssertive(message: string, id?: string): void;
        announcePolite(message: string, id?: string): void;
    }): React.ReactNode;
}>;

Additional Details

  • Last updated: Wed, 20 Oct 2021 21:01:37 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by AJ Livingston.

2.0.6

5 months ago

2.0.3

8 months ago

2.0.5

6 months ago

2.0.4

7 months ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

5 years ago