diff --git a/snapshots/demo-js/index.d.ts b/snapshots/demo-js/index.d.ts index f40d105..00f6d6e 100644 --- a/snapshots/demo-js/index.d.ts +++ b/snapshots/demo-js/index.d.ts @@ -5,7 +5,7 @@ export { default as IconAlipay } from './IconAlipay'; export { default as IconUser } from './IconUser'; export { default as IconSetup } from './IconSetup'; -interface Props extends Omit, 'color'> { +export interface Props extends Omit, 'color'> { name: 'alipay' | 'user' | 'setup'; size?: number; color?: string | string[]; diff --git a/snapshots/demo-ts/index.tsx b/snapshots/demo-ts/index.tsx index ba0d5d5..f7100b7 100644 --- a/snapshots/demo-ts/index.tsx +++ b/snapshots/demo-ts/index.tsx @@ -11,7 +11,7 @@ export { default as IconSetup } from './IconSetup'; export type IconNames = 'alipay' | 'user' | 'setup'; -interface Props extends Omit, 'color'> { +export interface Props extends Omit, 'color'> { name: IconNames; size?: number; color?: string | string[]; diff --git a/src/templates/Icon.d.ts.template b/src/templates/Icon.d.ts.template index 4f00a50..3380a6d 100644 --- a/src/templates/Icon.d.ts.template +++ b/src/templates/Icon.d.ts.template @@ -3,7 +3,7 @@ import { SVGAttributes, FunctionComponent } from 'react'; #exports# -interface Props extends Omit, 'color'> { +export interface Props extends Omit, 'color'> { name: '#names#'; size?: number; color?: string | string[]; diff --git a/src/templates/Icon.tsx.template b/src/templates/Icon.tsx.template index ae68ea9..a087b06 100644 --- a/src/templates/Icon.tsx.template +++ b/src/templates/Icon.tsx.template @@ -7,7 +7,7 @@ import React, { SVGAttributes, FunctionComponent } from 'react'; export type IconNames = '#names#'; -interface Props extends Omit, 'color'> { +export interface Props extends Omit, 'color'> { name: IconNames; size?: number; color?: string | string[];