Skip to content

Commit

Permalink
fix: Update TS typing according to MarkerView introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
amauryliet committed Apr 29, 2020
1 parent 14d954e commit 7b0d157
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ declare namespace MapboxGL {
}

class PointAnnotation extends Component<PointAnnotationProps> {}
class MarkerView extends Component<MarkerViewProps> {}
class Callout extends Component<CalloutProps> {}

/**
Expand Down Expand Up @@ -680,6 +681,9 @@ export interface PointAnnotationProps {
onDeselected?: () => void;
}

export interface MarkerViewProps extends PointAnnotationProps {
}

export interface CalloutProps extends Omit<ViewProps, 'style'> {
title?: string;
style?: StyleProp<WithExpression<ViewStyle>>;
Expand Down

0 comments on commit 7b0d157

Please sign in to comment.