forked from simple-icons/simple-icons
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsdk.d.ts
More file actions
46 lines (40 loc) · 1.53 KB
/
sdk.d.ts
File metadata and controls
46 lines (40 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// @ts-check
/**
* @file
* Types for Simple Icons SDK.
*/
import type {IconData} from './types.d.ts';
export type {IconData, DuplicateAlias, Aliases} from './types.d.ts';
/**
* The data for a third-party extension.
*
* Includes the module and author of the extension,
* both including a name and URL.
* @see {@link https://github.com/simple-icons/simple-icons#third-party-extensions Third-Party Extensions}
*/
export type ThirdPartyExtension = {
module: ThirdPartyExtensionSubject;
author: ThirdPartyExtensionSubject;
};
type ThirdPartyExtensionSubject = {
name: string;
url: string;
};
/* The next code is autogenerated from sdk.mjs */
/* eslint-disable */
export const SVG_PATH_REGEX: RegExp;
export function getIconSlug(icon: IconData): string;
export function svgToPath(svg: string): string;
export function titleToSlug(title: string): string;
export function slugToVariableName(slug: string): string;
export function titleToHtmlFriendly(brandTitle: string): string;
export function htmlFriendlyToTitle(htmlFriendlyTitle: string): string;
export function getIconsDataPath(): string;
export function getIconsDataString(): Promise<string>;
export function getIconsData(): Promise<IconData[]>;
export function normalizeNewlines(text: string): string;
export function normalizeColor(text: string): string;
export function getThirdPartyExtensions(): Promise<ThirdPartyExtension[]>;
export function getThirdPartyLibraries(): Promise<ThirdPartyExtension[]>;
export const collator: Intl.Collator;
export type IconData = import('./types.js').IconData;