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
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: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Eric Liu.