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