mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
fixes wrong type definition
This commit is contained in:
@@ -42,7 +42,7 @@ export type BaseContext = {
|
|||||||
|
|
||||||
export type AnnotationFactoryContext = BaseContext;
|
export type AnnotationFactoryContext = BaseContext;
|
||||||
|
|
||||||
export type FileAnnotationFactory = (file: File, setCollapseState: (boolean) => void) => React.Node[];
|
export type FileAnnotationFactory = (file: File) => React.Node[];
|
||||||
|
|
||||||
// key = change id, value = react component
|
// key = change id, value = react component
|
||||||
export type AnnotationFactory = (
|
export type AnnotationFactory = (
|
||||||
@@ -58,7 +58,7 @@ export type DiffEventContext = BaseContext & {
|
|||||||
|
|
||||||
export type DiffEventHandler = (context: DiffEventContext) => void;
|
export type DiffEventHandler = (context: DiffEventContext) => void;
|
||||||
|
|
||||||
export type FileControlFactory = (file: File) => ?React.Node;
|
export type FileControlFactory = (file: File, setCollapseState: (boolean) => void) => ?React.Node;
|
||||||
|
|
||||||
export type DiffObjectProps = {
|
export type DiffObjectProps = {
|
||||||
sideBySide: boolean,
|
sideBySide: boolean,
|
||||||
|
|||||||
Reference in New Issue
Block a user