Skip to content

Commit

Permalink
Merge pull request #198 from MilanBarande/master
Browse files Browse the repository at this point in the history
fix children typing on MarkdownStatic
  • Loading branch information
iamacup authored Dec 11, 2023
2 parents c2f044c + e8e98df commit 192b0eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable:max-classes-per-file
import MarkdownIt from 'markdown-it';
import Token from 'markdown-it/lib/token';
import {ComponentType, ReactNode} from 'react';
import {ComponentType, PropsWithChildren, ReactNode} from 'react';
import {StyleSheet, View} from 'react-native';

export function getUniqueID(): string;
Expand Down Expand Up @@ -91,7 +91,7 @@ export interface MarkdownProps {
onLinkPress?: (url: string) => boolean;
}

type MarkdownStatic = ComponentType<MarkdownProps>;
type MarkdownStatic = ComponentType<PropsWithChildren<MarkdownProps>>;
export const Markdown: MarkdownStatic;
export type Markdown = MarkdownStatic;
export {MarkdownIt};
Expand Down

0 comments on commit 192b0eb

Please sign in to comment.