2.0.6 • Published 5 months ago
@types/react-aria-live v2.0.6
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.