feat: fix broken enum declaration (#1819)

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.
This commit is contained in:
tainakanchu
2022-08-09 21:20:33 +09:00
committed by GitHub
parent 8d0ae5e04e
commit 6d1110b9c0
2 changed files with 3 additions and 16 deletions
+2 -8
View File
@@ -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;
+1 -8
View File
@@ -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;