Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32d256e
commit 11b5855
Showing
6 changed files
with
50 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { StringTransformer, ComponentOutputter } from './global'; | ||
import { StyleOutputter } from './styles'; | ||
|
||
type ExportComponents = { | ||
fileId: string; | ||
onlyFromPages?: string[]; | ||
transformers?: StringTransformer[]; | ||
outputters?: ComponentOutputter[]; | ||
} | ||
|
||
type ExportStyles = { | ||
fileId: string; | ||
outputters?: StyleOutputter[]; | ||
} | ||
|
||
type ExportOptions = { | ||
token: string; | ||
log?: (msg: string) => void; | ||
} | ||
|
||
export type ExportComponentsOptions = ExportOptions & ExportComponents | ||
|
||
export type ExportStylesOptions = ExportOptions & ExportStyles | ||
|
||
export type CommandUseConfig = { | ||
commands: (['components', ExportComponents] | ['styles', ExportStyles])[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './global'; | ||
export * from './styles'; | ||
export * from './commands'; |