9 lines
231 B
TypeScript
9 lines
231 B
TypeScript
/* eslint-disable import/prefer-default-export */
|
|
import type { BaseOption } from 'Elements/types';
|
|
|
|
export function normalizeOptions(options: any[] | null) {
|
|
if (options === null) return [];
|
|
|
|
return options as BaseOption[];
|
|
}
|