Skip to content

Fix types again#542

Merged
internettrans merged 1 commit intoexperimentalfrom
types-fix2
Apr 13, 2025
Merged

Fix types again#542
internettrans merged 1 commit intoexperimentalfrom
types-fix2

Conversation

@internettrans
Copy link
Member

No description provided.

".": {
"default": "./lib/single-spa-angular.js",
"types": "./lib/single-spa-angular.d.ts"
"types": "./lib/single-spa-angular.d.ts",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently the order of the keys in the object matters, due to warning during ng build

export function singleSpaAngular<Props>(
opts: SingleSpaAngularOpts<Props>,
): Application<Props> | ParcelConfigObject<Props> {
): LifeCycles<Props> {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Application type is a union of lifecycles or a loading function for the lifecycles. singleSpaAngular() never returns a loading function

@internettrans internettrans merged commit 78a15f0 into experimental Apr 13, 2025
1 check passed
@internettrans internettrans deleted the types-fix2 branch April 13, 2025 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant