Skip to content

Commit

Permalink
feat: fix broken enum declaration (#1819)
Browse files Browse the repository at this point in the history
After #1800 merged, the refactoring 286c02f was performed and enum declaration was back to previous one.
So type error mentioned at #1210 for maskUnits should occurred again.
  • Loading branch information
tainakanchu committed Aug 9, 2022
1 parent 8d0ae5e commit 6d1110b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
10 changes: 2 additions & 8 deletions src/elements/Marker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,9 @@ import { NumberProp } from '../lib/extract/types';
import Shape from './Shape';
import { RNSVGMarker } from './NativeComponents';

export enum MarkerUnits {
STROKE_WIDTH = 'strokeWidth',
USER_SPACE_ON_USE = 'userSpaceOnUse',
}
export type MarkerUnits = 'strokeWidth' | 'userSpaceOnUse';

export enum Orient {
AUTO = 'auto',
AUTO_START_REVERSE = 'auto-start-reverse',
}
export type Orient = 'auto' | 'auto-start-reverse';

export interface MarkerProps {
children?: ReactNode;
Expand Down
9 changes: 1 addition & 8 deletions src/elements/Mask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@ import units from '../lib/units';
import Shape from './Shape';
import { RNSVGMask } from './NativeComponents';

export enum EMaskUnits {
USER_SPACE_ON_USE = 'userSpaceOnUse',
OBJECT_BOUNDING_BOX = 'objectBoundingBox',
}

export type TMaskUnits =
| EMaskUnits.USER_SPACE_ON_USE
| EMaskUnits.OBJECT_BOUNDING_BOX;
export type TMaskUnits = 'userSpaceOnUse' | 'objectBoundingBox';

export interface MaskProps extends CommonPathProps {
children?: ReactNode;
Expand Down

0 comments on commit 6d1110b

Please sign in to comment.