From b670d76810abff56f373d0f991d83a7d1d96730a Mon Sep 17 00:00:00 2001 From: ztplz Date: Thu, 27 Jun 2019 10:31:14 +0800 Subject: [PATCH] Reuse type --- src/utils/valueUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/valueUtil.ts b/src/utils/valueUtil.ts index a17c068c..104fce74 100644 --- a/src/utils/valueUtil.ts +++ b/src/utils/valueUtil.ts @@ -10,7 +10,7 @@ import { toArray } from './typeUtil'; * 123 => [123] * ['a', 123] => ['a', 123] */ -export function getNamePath(path: NamePath | null): (string | number)[] { +export function getNamePath(path: NamePath | null): InternalNamePath { return toArray(path); }