Skip to content

Commit

Permalink
Change 'OptionType' type name to 'OutputterParamOption'
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Feb 25, 2020
1 parent d9eb952 commit e631212
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/output-components-as-es6/src/index.ts
Expand Up @@ -13,7 +13,7 @@ type Options = {
output: string;
useBase64?: boolean;
useDataUrl?: boolean;
getVariableName?: (options: FigmaExport.OptionType) => string;
getVariableName?: (options: FigmaExport.OutputterParamOption) => string;
}

export = ({
Expand Down
4 changes: 2 additions & 2 deletions packages/output-components-as-svg/src/index.ts
Expand Up @@ -6,8 +6,8 @@ import makeDir = require('make-dir');

type Options = {
output: string;
getDirname?: (options: FigmaExport.OptionType) => string;
getBasename?: (options: FigmaExport.OptionType) => string;
getDirname?: (options: FigmaExport.OutputterParamOption) => string;
getBasename?: (options: FigmaExport.OutputterParamOption) => string;
}

export = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/output-components-as-svgstore/src/index.ts
Expand Up @@ -9,7 +9,7 @@ import path = require('path');
type Options = {
output: string;
options?: {};
getIconId?: (options: FigmaExport.OptionType) => string;
getIconId?: (options: FigmaExport.OutputterParamOption) => string;
}

export = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/global.ts
Expand Up @@ -19,7 +19,7 @@ export namespace FigmaExport {

export type Outputter = (pages: PageNode[]) => Promise<void>

export type OptionType = {
export type OutputterParamOption = {
componentName: string;
pageName: string;
} & ComponentExtras;
Expand Down

0 comments on commit e631212

Please sign in to comment.