Skip to content

Commit

Permalink
chore: move transforms to exports type
Browse files Browse the repository at this point in the history
  • Loading branch information
yarastqt committed Aug 4, 2020
1 parent 3b92189 commit ca43cc4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/modules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ declare module 'style-dictionary' {
platforms: Record<string, Platform>
}

export type InjectedTransformer = {
type: 'name' | 'attribute' | 'value'
transformer: (prop: { path: string; name: string }, options: any) => string
}

type InjectedConfig = {
buildPath: string
transforms: Array<{
type: 'name' | 'attribute' | 'value'
transformer: (prop: { path: string }, options: any) => string
}>
transforms: InjectedTransformer[]
files: Array<{
destination: string
format: any
Expand Down

0 comments on commit ca43cc4

Please sign in to comment.