Skip to content

Commit dfeb043

Browse files
authored
type: fix React.Key type error (#617)
1 parent ae39ca1 commit dfeb043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ListContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22
import type { InternalNamePath } from './interface';
33

44
export interface ListContextProps {
5-
getKey: (namePath: InternalNamePath) => [React.Key, InternalNamePath];
5+
getKey: (namePath: InternalNamePath) => [InternalNamePath[number], InternalNamePath];
66
}
77

88
const ListContext = React.createContext<ListContextProps | null>(null);

0 commit comments

Comments
 (0)