
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
@types/aria-query
Advanced tools
TypeScript definitions for aria-query
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.
These definitions were written by Sebastian Silbermann.
FAQs
TypeScript definitions for aria-query
The npm package @types/aria-query receives a total of 14,757,138 weekly downloads. As such, @types/aria-query popularity was classified as popular.
We found that @types/aria-query demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.