Added formats and fixed registerFormat

This commit is contained in:
nlaitine
2019-01-29 18:57:35 +02:00
parent dd501a1318
commit cc36a18fda
+9 -2
View File
@@ -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 {