chore(many): import types from source path (#26718)

This commit is contained in:
Sean Perkins
2023-02-02 11:40:51 -05:00
committed by GitHub
parent 92b5d5dc8c
commit e028d13a1b
4 changed files with 8 additions and 5 deletions

View File

@ -2,10 +2,11 @@ import type { ComponentInterface } from '@stencil/core';
import { Component, Element, Host, Prop, State, h } from '@stencil/core';
import { getIonMode } from '../../global/ionic-global';
import type { Color, DatetimePresentation } from '../../interface';
import type { Color } from '../../interface';
import { componentOnReady, addEventListener } from '../../utils/helpers';
import { printIonError } from '../../utils/logging';
import { createColorClasses } from '../../utils/theme';
import type { DatetimePresentation } from '../datetime/datetime-interface';
import { getToday } from '../datetime/utils/data';
import { getMonthAndYear, getMonthDayAndYear, getLocalizedDateTime, getLocalizedTime } from '../datetime/utils/format';
import { is24Hour } from '../datetime/utils/helpers';

View File

@ -1,6 +1,7 @@
import type { PopoverSize, PositionAlign, PositionReference, PositionSide, TriggerAction } from '../../interface';
import { getElementRoot, raf } from '../../utils/helpers';
import type { PopoverSize, PositionAlign, PositionReference, PositionSide, TriggerAction } from './popover-interface';
interface InteractionCallback {
eventName: string;
callback: (ev: any) => void; // TODO(FW-2832): type

View File

@ -8,9 +8,7 @@ import { caretDownSharp } from 'ionicons/icons';
import { getIonMode } from '../../global/ionic-global';
import type {
ActionSheetButton,
ActionSheetOptions,
AlertInput,
AlertOptions,
Color,
CssClassMap,
@ -23,6 +21,8 @@ import { actionSheetController, alertController, popoverController } from '../..
import type { OverlaySelect } from '../../utils/overlays-interface';
import { createColorClasses, hostContext } from '../../utils/theme';
import { watchForOptions } from '../../utils/watch-options';
import type { ActionSheetButton } from '../action-sheet/action-sheet-interface';
import type { AlertInput } from '../alert/alert-interface';
import type { SelectPopoverOption } from '../select-popover/select-popover-interface';
import type { SelectChangeEventDetail, SelectInterface, SelectCompareFn } from './select-interface';

View File

@ -1,4 +1,5 @@
import type { AnimationBuilder, Color, CssClassMap, RouterDirection } from '../interface';
import type { RouterDirection } from '../components/router/utils/interface';
import type { AnimationBuilder, Color, CssClassMap } from '../interface';
export const hostContext = (selector: string, el: HTMLElement): boolean => {
return el.closest(selector) !== null;