utils.d.ts 736 B

12345678910111213141516171819
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { NzSplitterCollapseOption, NzSplitterCollapsible } from './typings';
  6. /**
  7. * Get the percentage value of the string. (e.g. '50%' => 0.5)
  8. * @param str
  9. */
  10. export declare function getPercentValue(str: string): number;
  11. /**
  12. * Check if the size is percentage.
  13. * @param size
  14. */
  15. export declare function isPercent(size: string | number | undefined): size is string;
  16. /**
  17. * Coerce the panel collapsible option to the NzSplitterCollapseOption type.
  18. */
  19. export declare function coerceCollapsible(collapsible: NzSplitterCollapsible): NzSplitterCollapseOption;