@nexusui/components
Version:
These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.
15 lines (14 loc) • 458 B
TypeScript
/**
* This is the unit library for the value converter.
*/
import type { ValueConverterVariant } from './ValueConverter.container';
export type UnitItem = {
toBase: (value: number) => number;
fromBase: (value: number) => number;
fullName: string;
};
export interface UnitGroup extends Record<string, UnitItem | string> {
base: string;
}
export type UnitLib = Record<ValueConverterVariant, UnitGroup>;
export declare const unitLib: UnitLib;