Skip to content

Commit 8fb116b

Browse files
ztplzzombieJ
authored andcommitted
Reuse type (#17)
1 parent 0ff400e commit 8fb116b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/valueUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { toArray } from './typeUtil';
1010
* 123 => [123]
1111
* ['a', 123] => ['a', 123]
1212
*/
13-
export function getNamePath(path: NamePath | null): (string | number)[] {
13+
export function getNamePath(path: NamePath | null): InternalNamePath {
1414
return toArray(path);
1515
}
1616

0 commit comments

Comments
 (0)