Skip to content

Commit

Permalink
fix(types): fix transform options type #502
Browse files Browse the repository at this point in the history
  • Loading branch information
amalik2 authored Dec 22, 2020
1 parent 88a0046 commit 32787f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,19 @@ declare namespace StyleDictionary {
interface NameTransform {
type: "name";
matcher?: (prop: Prop) => boolean;
transformer: (prop: Prop, options: Options) => string;
transformer: (prop: Prop, options: Platform) => string;
}

interface ValueTransform {
type: "value";
matcher?: (prop: Prop) => boolean;
transformer: (prop: Prop, options: Options) => string;
transformer: (prop: Prop, options: Platform) => string;
}

interface AttributeTransform {
type: "attribute";
matcher?: (prop: Prop) => boolean;
transformer: (prop: Prop, options: Options) => { [key: string]: any };
transformer: (prop: Prop, options: Platform) => { [key: string]: any };
}

type Transform = NameTransform | ValueTransform | AttributeTransform;
Expand Down

0 comments on commit 32787f8

Please sign in to comment.