Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion snapshots/demo-js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<SVGAttributes<SVGElement>, 'color'> {
export interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
name: 'alipay' | 'user' | 'setup';
size?: number;
color?: string | string[];
Expand Down
2 changes: 1 addition & 1 deletion snapshots/demo-ts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export { default as IconSetup } from './IconSetup';

export type IconNames = 'alipay' | 'user' | 'setup';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
export interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
name: IconNames;
size?: number;
color?: string | string[];
Expand Down
2 changes: 1 addition & 1 deletion src/templates/Icon.d.ts.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { SVGAttributes, FunctionComponent } from 'react';
#exports#

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
export interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
name: '#names#';
size?: number;
color?: string | string[];
Expand Down
2 changes: 1 addition & 1 deletion src/templates/Icon.tsx.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React, { SVGAttributes, FunctionComponent } from 'react';

export type IconNames = '#names#';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
export interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
name: IconNames;
size?: number;
color?: string | string[];
Expand Down