KeyValue Interface
v1.0.0Generic interface for values identified by a string or numeric key.
Definition
interface IKeyValue<T> {
key: number | string;
value: T;
}
Usage
import type { IKeyValue } from '@oardi/ts-utils';
const option: IKeyValue<string> = {
key: 1,
value: 'Published',
};
EnumHelper.getKeyValues() returns this structure for numeric TypeScript enums.
Previous:Helpers
← Window Resize HelperNext:General
Types →