2022-07-11 16:34:11 +03:00

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[];
}