10.7.4 • Published 7 months ago
@types/carbon__icon-helpers v10.7.4
Installation
npm install --save @types/carbon__icon-helpers
Summary
This package contains type definitions for @carbon/icon-helpers (https://github.com/carbon-design-system/carbon/blob/master/packages/icon-helpers).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/carbon__icon-helpers.
index.d.ts
// Type definitions for @carbon/icon-helpers 10.7
// Project: https://github.com/carbon-design-system/carbon/blob/master/packages/icon-helpers
// Definitions by: Eric Liu <https://github.com/metonym>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.8
export const defaultAttributes: {
focusable: string;
preserveAspectRatio: string;
};
export function getAttributes({
width,
height,
viewBox,
...attributes
}?: {
width?: number | undefined;
height?: number | undefined;
viewBox?: string | undefined;
tabindex?: number | string | undefined;
title?: string | undefined;
role?: string | undefined;
}): {
width: number;
height: number;
viewBox: string;
title?: string | undefined;
role?: string | undefined;
focusable: string;
preserveAspectRatio: string;
};
export function toString(descriptor: any): string;
export function formatAttributes(attrs: any): string;
export function toSVG(descriptor: any): SVGSVGElement;
Additional Details
- Last updated: Thu, 08 Jul 2021 05:47:16 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Eric Liu.