mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
fix(route): params is not undefined
This commit is contained in:
2
packages/core/src/components.d.ts
vendored
2
packages/core/src/components.d.ts
vendored
@ -2602,7 +2602,7 @@ declare global {
|
||||
namespace JSXElements {
|
||||
export interface IonRouteAttributes extends HTMLAttributes {
|
||||
component?: string;
|
||||
params?: undefined;
|
||||
params?: {[key: string]: any};
|
||||
path?: string;
|
||||
}
|
||||
}
|
||||
|
@ -7,5 +7,5 @@ import { Component, Prop } from '@stencil/core';
|
||||
export class Route {
|
||||
@Prop() path = '';
|
||||
@Prop() component: string;
|
||||
@Prop() params: undefined;
|
||||
@Prop() params: {[key: string]: any};
|
||||
}
|
||||
|
Reference in New Issue
Block a user