mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Added formats and fixed registerFormat
This commit is contained in:
Vendored
+9
-2
@@ -27,7 +27,12 @@ export type Format =
|
||||
| "list.scss"
|
||||
| "module.js"
|
||||
| "common.js"
|
||||
| "html";
|
||||
| "html"
|
||||
| "json"
|
||||
| "raw.json"
|
||||
| "ios.json"
|
||||
| "android.xml"
|
||||
| "aura.tokens";
|
||||
|
||||
export type Transform = "raw" | "ios" | "android" | "web";
|
||||
|
||||
@@ -43,7 +48,7 @@ export type ValueTransform =
|
||||
export function convert(options: ConvertOptions): Promise<string>;
|
||||
export function convertSync(options: ConvertOptions): string;
|
||||
export function registerFormat(
|
||||
name: Format,
|
||||
name: string,
|
||||
format: FormatResultFn | string
|
||||
): void;
|
||||
export function registerTransform(
|
||||
@@ -77,6 +82,8 @@ export interface ImmutableStyleMap extends Map<string, any> {
|
||||
export interface ConvertOptions {
|
||||
transform: TransformOptions;
|
||||
format: FormatOptions;
|
||||
resolveAliases?: boolean;
|
||||
resolveMetaAliases?: boolean;
|
||||
}
|
||||
|
||||
export interface TransformOptions {
|
||||
|
||||
Reference in New Issue
Block a user