Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@types/aria-query
Advanced tools
The @types/aria-query package provides TypeScript type definitions for aria-query, a library that maps ARIA roles, states, and properties to their respective values and types. This package is essential for developers using TypeScript to build accessible web applications, ensuring type safety and autocomplete features for ARIA-related code.
Type Definitions for ARIA Roles
Provides TypeScript types for querying details about ARIA roles, such as 'button', 'checkbox', etc., including their required states and properties.
import { ARIARoleDefintionMap } from 'aria-query';
const roleMap: ARIARoleDefintionMap = require('aria-query').roles;
console.log(roleMap['button']);
Type Definitions for ARIA States and Properties
Offers TypeScript types for ARIA states and properties, enabling developers to access information about each state or property, such as type, values, and applicability.
import { ARIAStateMap } from 'aria-query';
const stateMap: ARIAStateMap = require('aria-query').states;
console.log(stateMap['aria-checked']);
Provides TypeScript definitions for React, similar to how @types/aria-query provides for aria-query. While @types/react focuses on React-specific types, @types/aria-query focuses on ARIA roles, states, and properties for accessibility.
The core TypeScript language itself, which includes support for JSX and other typing features. TypeScript enhances JavaScript with types and is similar to @types/aria-query in that it provides type safety, but it is more general and not focused solely on ARIA attributes.
npm install --save @types/aria-query
This package contains type definitions for aria-query (https://github.com/A11yance/aria-query#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aria-query
Additional Details
These definitions were written by Sebastian Silbermann https://github.com/me.
FAQs
TypeScript definitions for aria-query
The npm package @types/aria-query receives a total of 10,274,766 weekly downloads. As such, @types/aria-query popularity was classified as popular.
We found that @types/aria-query demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.