style: remove duplicate func (#3924)
parent
efb382c9ce
commit
44e73cf460
@ -1,5 +1,5 @@
|
||||
import { PresetColorTypes } from '../_util/colors';
|
||||
|
||||
export function isPresetColor(color?: string): boolean {
|
||||
return (PresetColorTypes as any[]).indexOf(color) !== -1;
|
||||
return (PresetColorTypes as string[]).indexOf(color) !== -1;
|
||||
}
|
||||
|
Loading…
Reference in new issue