UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

22 lines (21 loc) 752 B
/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ export type NzSegmentedOption = { value: string | number; useTemplate?: boolean; disabled?: boolean; className?: string; } & (NzSegmentedWithLabel | NzSegmentedWithIcon); export interface NzSegmentedWithLabel { label: string; icon?: string; } export interface NzSegmentedWithIcon { icon: string; label?: string; } export type NzSegmentedOptions = Array<NzSegmentedOption | string | number>; export type NzNormalizedOptions = NzSegmentedOption[]; export declare function normalizeOptions(unnormalized: NzSegmentedOptions): NzNormalizedOptions;