mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00

Issue number: Internal --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the current behavior? <!-- Please describe the current behavior that you are modifying. --> As part of FW-2832 the team has an initiative to remove much of the `any` usage in favor of stronger types. This will make modifications to this codebase safer as we will have access to proper type checking. ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Removed several `any` usages in favor of stronger types. Note that not all of the `any` types within these files have been removed. I mainly stuck to the low hanging fruit 😄 ## Does this introduce a breaking change? - [ ] Yes - [x] No I intentionally made type changes that do not impact public APIs. Any incorrect type changes would cause our CI checks to fail. <!-- If this introduces a breaking change: 1. Describe the impact and migration path for existing applications below. 2. Update the BREAKING.md file with the breaking change. 3. Add "BREAKING CHANGE: [...]" to the commit description when merging. See https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#footer for more information. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
23 lines
454 B
TypeScript
23 lines
454 B
TypeScript
export interface SpinnerConfigs {
|
|
[spinnerName: string]: SpinnerConfig;
|
|
}
|
|
|
|
export interface SpinnerConfig {
|
|
dur: number;
|
|
circles?: number;
|
|
lines?: number;
|
|
elmDuration?: boolean;
|
|
fn: (dur: number, index: number, total: number) => SpinnerData;
|
|
}
|
|
|
|
export interface SpinnerData {
|
|
r?: number;
|
|
y1?: number;
|
|
y2?: number;
|
|
cx?: number;
|
|
cy?: number;
|
|
style: { [key: string]: string | undefined };
|
|
viewBox?: string;
|
|
transform?: string;
|
|
}
|