react-ocean-forms
Version:
Forms components for react based on the context api.
12 lines (11 loc) • 392 B
TypeScript
/**
* Copyright (c) 2018-present, Umweltbundesamt GmbH
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* Returns an array with the parameter as its only element if
* the parameter is not an array. Otherwise it returns an array
*/
export declare const toArray: <T>(param: T | T[]) => T[];