Skip to content

Commit

Permalink
fix(compopsables): proper type for computed ref in readonly refs (#1566)
Browse files Browse the repository at this point in the history
  • Loading branch information
patzick authored Jun 17, 2021
1 parent e2fc62b commit 4316833
Show file tree
Hide file tree
Showing 43 changed files with 259 additions and 86 deletions.
60 changes: 38 additions & 22 deletions api/composables.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ export interface ApplicationVueContext extends VueConstructor {
$route?: any;
// (undocumented)
$router?: any;
// Warning: (ae-forgotten-export) The symbol "Routing" needs to be exported by the entry point index.d.ts
//
// (undocumented)
$routing: Routing;
// (undocumented)
Expand Down Expand Up @@ -216,17 +214,17 @@ export interface IUseCart {
// @beta
export interface IUseCheckout {
// (undocumented)
billingAddress: Readonly<Ref<Partial<BillingAddress> | undefined>>;
billingAddress: ComputedRef<Partial<BillingAddress> | undefined>;
// (undocumented)
createOrder: () => Promise<Order>;
// (undocumented)
getPaymentMethods: (options?: {
forceReload: boolean;
}) => Promise<Readonly<Ref<readonly PaymentMethod[]>>>;
}) => Promise<ComputedRef<PaymentMethod[]>>;
// (undocumented)
getShippingMethods: (options?: {
forceReload: boolean;
}) => Promise<Readonly<Ref<readonly ShippingMethod[]>>>;
}) => Promise<ComputedRef<ShippingMethod[]>>;
// (undocumented)
loadings: UnwrapRef<{
createOrder: boolean;
Expand All @@ -236,11 +234,11 @@ export interface IUseCheckout {
order: Order;
}) => void) => void;
// (undocumented)
paymentMethods: Readonly<Ref<readonly PaymentMethod[]>>;
paymentMethods: ComputedRef<PaymentMethod[]>;
// (undocumented)
shippingAddress: Readonly<Ref<ShippingAddress | undefined>>;
shippingAddress: ComputedRef<ShippingAddress | undefined>;
// (undocumented)
shippingMethods: Readonly<Ref<readonly ShippingMethod[]>>;
shippingMethods: ComputedRef<ShippingMethod[]>;
}

// @beta
Expand Down Expand Up @@ -352,13 +350,13 @@ export interface IUseProductQuickSearch {
// @beta
export interface IUseSessionContext {
// (undocumented)
activeBillingAddress: Readonly<Ref<BillingAddress | null>>;
activeBillingAddress: ComputedRef<BillingAddress | null>;
// (undocumented)
activeShippingAddress: Readonly<Ref<ShippingAddress | null>>;
activeShippingAddress: ComputedRef<ShippingAddress | null>;
// (undocumented)
countryId: ComputedRef<string | undefined>;
// (undocumented)
currency: Readonly<Ref<Currency | null>>;
currency: ComputedRef<Currency | null>;
// (undocumented)
onCurrencyChange: (fn: (params: {
currency: Currency;
Expand All @@ -372,7 +370,7 @@ export interface IUseSessionContext {
shippingMethod: ShippingMethod;
}) => void) => void;
// (undocumented)
paymentMethod: Readonly<Ref<PaymentMethod | null>>;
paymentMethod: ComputedRef<PaymentMethod | null>;
// (undocumented)
refreshSessionContext: () => Promise<void>;
// (undocumented)
Expand All @@ -388,7 +386,7 @@ export interface IUseSessionContext {
// (undocumented)
setShippingMethod: (shippingMethod: Partial<ShippingMethod>) => Promise<void>;
// (undocumented)
shippingMethod: Readonly<Ref<ShippingMethod | null>>;
shippingMethod: ComputedRef<ShippingMethod | null>;
}

// @beta
Expand Down Expand Up @@ -502,6 +500,24 @@ interface Notification_2 {

export { Notification_2 as Notification }

// @beta (undocumented)
export interface Routing {
// (undocumented)
availableDomains: any;
// (undocumented)
fallbackDomain: string | undefined;
// (undocumented)
fallbackLocale: string | undefined;
// (undocumented)
getCurrentDomain: ComputedRef<string>;
// (undocumented)
getUrl: (path: string) => string;
// (undocumented)
pwaHost: string | undefined;
// (undocumented)
setCurrentDomain: (domainData: any) => void;
}

// @beta (undocumented)
export type Search = (path: string, associations?: any) => any;

Expand Down Expand Up @@ -543,7 +559,7 @@ export interface UseCountries {
// (undocumented)
fetchCountries: () => Promise<void>;
// (undocumented)
getCountries: Ref<Readonly<Country[]>>;
getCountries: ComputedRef<Country[]>;
// (undocumented)
mountedCallback: () => Promise<void>;
}
Expand All @@ -556,22 +572,22 @@ export interface UseCountry {
// (undocumented)
currentCountry: ComputedRef<Country | null>;
// (undocumented)
displayState: Readonly<Ref<boolean>>;
displayState: ComputedRef<boolean>;
// (undocumented)
forceState: Readonly<Ref<boolean>>;
forceState: ComputedRef<boolean>;
}

// @beta (undocumented)
export const useCountry: (countryId: Ref<Readonly<string>>, countries: Ref<Readonly<Country[]>>) => UseCountry;
export const useCountry: (countryId: ComputedRef<string>, countries: ComputedRef<Country[]>) => UseCountry;

// @beta (undocumented)
export interface UseCurrency {
// (undocumented)
availableCurrencies: Readonly<Ref<readonly Currency[]>>;
availableCurrencies: ComputedRef<Currency[]>;
// (undocumented)
currency: Readonly<Ref<Currency | null>>;
currency: ComputedRef<Currency | null>;
// (undocumented)
currencySymbol: Ref<Readonly<string>>;
currencySymbol: ComputedRef<string>;
// (undocumented)
loadAvailableCurrencies: (options?: {
forceReload: boolean;
Expand Down Expand Up @@ -645,7 +661,7 @@ export interface UseSalutations {
// (undocumented)
fetchSalutations: () => Promise<void>;
// (undocumented)
getSalutations: Ref<Readonly<any>>;
getSalutations: ComputedRef<Salutation[]>;
// (undocumented)
mountedCallback: () => Promise<void>;
}
Expand All @@ -664,7 +680,7 @@ export function useSharedState(rootContext: ApplicationVueContext): {

// @beta
export const useUIState: (rootContext: ApplicationVueContext, stateName?: string | undefined) => {
isOpen: Readonly<Ref<boolean>>;
isOpen: ComputedRef<boolean>;
switchState: (to?: boolean | undefined) => void;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface ApplicationVueContext extends VueConstructor
| [$isServer?](./composables.applicationvuecontext._isserver.md) | any | <b><i>(BETA)</i></b> <i>(Optional)</i> |
| [$route?](./composables.applicationvuecontext._route.md) | any | <b><i>(BETA)</i></b> <i>(Optional)</i> |
| [$router?](./composables.applicationvuecontext._router.md) | any | <b><i>(BETA)</i></b> <i>(Optional)</i> |
| [$routing](./composables.applicationvuecontext._routing.md) | Routing | <b><i>(BETA)</i></b> |
| [$routing](./composables.applicationvuecontext._routing.md) | [Routing](./composables.routing.md) | <b><i>(BETA)</i></b> |
| [$sharedStore?](./composables.applicationvuecontext._sharedstore.md) | any | <b><i>(BETA)</i></b> <i>(Optional)</i> |
| [$shopwareApiInstance?](./composables.applicationvuecontext._shopwareapiinstance.md) | ShopwareApiInstance | <b><i>(BETA)</i></b> <i>(Optional)</i> |
| [$shopwareDefaults?](./composables.applicationvuecontext._shopwaredefaults.md) | any | <b><i>(BETA)</i></b> <i>(Optional)</i> |
Expand All @@ -39,7 +39,7 @@ export interface ApplicationVueContext extends VueConstructor
| [isServer?](./composables.applicationvuecontext.isserver.md) | any | <b><i>(BETA)</i></b> <i>(Optional)</i> |
| [route?](./composables.applicationvuecontext.route.md) | any | <b><i>(BETA)</i></b> <i>(Optional)</i> |
| [router?](./composables.applicationvuecontext.router.md) | any | <b><i>(BETA)</i></b> <i>(Optional)</i> |
| [routing](./composables.applicationvuecontext.routing.md) | Routing | <b><i>(BETA)</i></b> |
| [routing](./composables.applicationvuecontext.routing.md) | [Routing](./composables.routing.md) | <b><i>(BETA)</i></b> |
| [sharedStore?](./composables.applicationvuecontext.sharedstore.md) | any | <b><i>(BETA)</i></b> <i>(Optional)</i> |
| [shopwareApiInstance?](./composables.applicationvuecontext.shopwareapiinstance.md) | ShopwareApiInstance | <b><i>(BETA)</i></b> <i>(Optional)</i> |
| [shopwareDefaults?](./composables.applicationvuecontext.shopwaredefaults.md) | any | <b><i>(BETA)</i></b> <i>(Optional)</i> |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ export declare function getApplicationContext(rootContext: ApplicationVueContext

<b>Returns:</b>

{ apiInstance: ShopwareApiInstance \| undefined; vuexStore: any; router: any; route: any; i18n: any; cookies: any; shopwareDefaults: any; interceptors: any; routing: Routing; sharedStore: any; instanceStore: any; isServer: boolean; contextName: string; }
{ apiInstance: ShopwareApiInstance \| undefined; vuexStore: any; router: any; route: any; i18n: any; cookies: any; shopwareDefaults: any; interceptors: any; routing: [Routing](./composables.routing.md)<!-- -->; sharedStore: any; instanceStore: any; isServer: boolean; contextName: string; }

Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<b>Signature:</b>

```typescript
billingAddress: Readonly<Ref<Partial<BillingAddress> | undefined>>;
billingAddress: ComputedRef<Partial<BillingAddress> | undefined>;
```
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
```typescript
getPaymentMethods: (options?: {
forceReload: boolean;
}) => Promise<Readonly<Ref<readonly PaymentMethod[]>>>;
}) => Promise<ComputedRef<PaymentMethod[]>>;
```
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
```typescript
getShippingMethods: (options?: {
forceReload: boolean;
}) => Promise<Readonly<Ref<readonly ShippingMethod[]>>>;
}) => Promise<ComputedRef<ShippingMethod[]>>;
```
12 changes: 6 additions & 6 deletions docs/landing/resources/api/composables.iusecheckout.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ export interface IUseCheckout

| Property | Type | Description |
| --- | --- | --- |
| [billingAddress](./composables.iusecheckout.billingaddress.md) | Readonly&lt;Ref&lt;Partial&lt;BillingAddress&gt; \| undefined&gt;&gt; | <b><i>(BETA)</i></b> |
| [billingAddress](./composables.iusecheckout.billingaddress.md) | ComputedRef&lt;Partial&lt;BillingAddress&gt; \| undefined&gt; | <b><i>(BETA)</i></b> |
| [createOrder](./composables.iusecheckout.createorder.md) | () =&gt; Promise&lt;Order&gt; | <b><i>(BETA)</i></b> |
| [getPaymentMethods](./composables.iusecheckout.getpaymentmethods.md) | (options?: { forceReload: boolean; }) =&gt; Promise&lt;Readonly&lt;Ref&lt;readonly PaymentMethod\[\]&gt;&gt;&gt; | <b><i>(BETA)</i></b> |
| [getShippingMethods](./composables.iusecheckout.getshippingmethods.md) | (options?: { forceReload: boolean; }) =&gt; Promise&lt;Readonly&lt;Ref&lt;readonly ShippingMethod\[\]&gt;&gt;&gt; | <b><i>(BETA)</i></b> |
| [getPaymentMethods](./composables.iusecheckout.getpaymentmethods.md) | (options?: { forceReload: boolean; }) =&gt; Promise&lt;ComputedRef&lt;PaymentMethod\[\]&gt;&gt; | <b><i>(BETA)</i></b> |
| [getShippingMethods](./composables.iusecheckout.getshippingmethods.md) | (options?: { forceReload: boolean; }) =&gt; Promise&lt;ComputedRef&lt;ShippingMethod\[\]&gt;&gt; | <b><i>(BETA)</i></b> |
| [loadings](./composables.iusecheckout.loadings.md) | UnwrapRef&lt;{ createOrder: boolean; }&gt; | <b><i>(BETA)</i></b> |
| [onOrderPlace](./composables.iusecheckout.onorderplace.md) | (fn: (params: { order: Order; }) =&gt; void) =&gt; void | <b><i>(BETA)</i></b> |
| [paymentMethods](./composables.iusecheckout.paymentmethods.md) | Readonly&lt;Ref&lt;readonly PaymentMethod\[\]&gt;&gt; | <b><i>(BETA)</i></b> |
| [shippingAddress](./composables.iusecheckout.shippingaddress.md) | Readonly&lt;Ref&lt;ShippingAddress \| undefined&gt;&gt; | <b><i>(BETA)</i></b> |
| [shippingMethods](./composables.iusecheckout.shippingmethods.md) | Readonly&lt;Ref&lt;readonly ShippingMethod\[\]&gt;&gt; | <b><i>(BETA)</i></b> |
| [paymentMethods](./composables.iusecheckout.paymentmethods.md) | ComputedRef&lt;PaymentMethod\[\]&gt; | <b><i>(BETA)</i></b> |
| [shippingAddress](./composables.iusecheckout.shippingaddress.md) | ComputedRef&lt;ShippingAddress \| undefined&gt; | <b><i>(BETA)</i></b> |
| [shippingMethods](./composables.iusecheckout.shippingmethods.md) | ComputedRef&lt;ShippingMethod\[\]&gt; | <b><i>(BETA)</i></b> |

Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<b>Signature:</b>

```typescript
paymentMethods: Readonly<Ref<readonly PaymentMethod[]>>;
paymentMethods: ComputedRef<PaymentMethod[]>;
```
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<b>Signature:</b>

```typescript
shippingAddress: Readonly<Ref<ShippingAddress | undefined>>;
shippingAddress: ComputedRef<ShippingAddress | undefined>;
```
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<b>Signature:</b>

```typescript
shippingMethods: Readonly<Ref<readonly ShippingMethod[]>>;
shippingMethods: ComputedRef<ShippingMethod[]>;
```
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<b>Signature:</b>

```typescript
activeBillingAddress: Readonly<Ref<BillingAddress | null>>;
activeBillingAddress: ComputedRef<BillingAddress | null>;
```
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<b>Signature:</b>

```typescript
activeShippingAddress: Readonly<Ref<ShippingAddress | null>>;
activeShippingAddress: ComputedRef<ShippingAddress | null>;
```
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<b>Signature:</b>

```typescript
currency: Readonly<Ref<Currency | null>>;
currency: ComputedRef<Currency | null>;
```
10 changes: 5 additions & 5 deletions docs/landing/resources/api/composables.iusesessioncontext.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ SessionContext contain all related data like user, currency, country, shippingMe

| Property | Type | Description |
| --- | --- | --- |
| [activeBillingAddress](./composables.iusesessioncontext.activebillingaddress.md) | Readonly&lt;Ref&lt;BillingAddress \| null&gt;&gt; | <b><i>(BETA)</i></b> |
| [activeShippingAddress](./composables.iusesessioncontext.activeshippingaddress.md) | Readonly&lt;Ref&lt;ShippingAddress \| null&gt;&gt; | <b><i>(BETA)</i></b> |
| [activeBillingAddress](./composables.iusesessioncontext.activebillingaddress.md) | ComputedRef&lt;BillingAddress \| null&gt; | <b><i>(BETA)</i></b> |
| [activeShippingAddress](./composables.iusesessioncontext.activeshippingaddress.md) | ComputedRef&lt;ShippingAddress \| null&gt; | <b><i>(BETA)</i></b> |
| [countryId](./composables.iusesessioncontext.countryid.md) | ComputedRef&lt;string \| undefined&gt; | <b><i>(BETA)</i></b> |
| [currency](./composables.iusesessioncontext.currency.md) | Readonly&lt;Ref&lt;Currency \| null&gt;&gt; | <b><i>(BETA)</i></b> |
| [currency](./composables.iusesessioncontext.currency.md) | ComputedRef&lt;Currency \| null&gt; | <b><i>(BETA)</i></b> |
| [onCurrencyChange](./composables.iusesessioncontext.oncurrencychange.md) | (fn: (params: { currency: Currency; }) =&gt; void) =&gt; void | <b><i>(BETA)</i></b> |
| [onPaymentMethodChange](./composables.iusesessioncontext.onpaymentmethodchange.md) | (fn: (params: { paymentMethod: PaymentMethod; }) =&gt; void) =&gt; void | <b><i>(BETA)</i></b> |
| [onShippingMethodChange](./composables.iusesessioncontext.onshippingmethodchange.md) | (fn: (params: { shippingMethod: ShippingMethod; }) =&gt; void) =&gt; void | <b><i>(BETA)</i></b> |
| [paymentMethod](./composables.iusesessioncontext.paymentmethod.md) | Readonly&lt;Ref&lt;PaymentMethod \| null&gt;&gt; | <b><i>(BETA)</i></b> |
| [paymentMethod](./composables.iusesessioncontext.paymentmethod.md) | ComputedRef&lt;PaymentMethod \| null&gt; | <b><i>(BETA)</i></b> |
| [refreshSessionContext](./composables.iusesessioncontext.refreshsessioncontext.md) | () =&gt; Promise&lt;void&gt; | <b><i>(BETA)</i></b> |
| [sessionContext](./composables.iusesessioncontext.sessioncontext.md) | ComputedRef&lt;SessionContext \| null&gt; | <b><i>(BETA)</i></b> |
| [setActiveBillingAddress](./composables.iusesessioncontext.setactivebillingaddress.md) | (address: Partial&lt;BillingAddress&gt;) =&gt; Promise&lt;void&gt; | <b><i>(BETA)</i></b> |
| [setActiveShippingAddress](./composables.iusesessioncontext.setactiveshippingaddress.md) | (address: Partial&lt;ShippingAddress&gt;) =&gt; Promise&lt;void&gt; | <b><i>(BETA)</i></b> |
| [setCurrency](./composables.iusesessioncontext.setcurrency.md) | (currency: Partial&lt;Currency&gt;) =&gt; Promise&lt;void&gt; | <b><i>(BETA)</i></b> |
| [setPaymentMethod](./composables.iusesessioncontext.setpaymentmethod.md) | (paymentMethod: Partial&lt;PaymentMethod&gt;) =&gt; Promise&lt;void&gt; | <b><i>(BETA)</i></b> |
| [setShippingMethod](./composables.iusesessioncontext.setshippingmethod.md) | (shippingMethod: Partial&lt;ShippingMethod&gt;) =&gt; Promise&lt;void&gt; | <b><i>(BETA)</i></b> |
| [shippingMethod](./composables.iusesessioncontext.shippingmethod.md) | Readonly&lt;Ref&lt;ShippingMethod \| null&gt;&gt; | <b><i>(BETA)</i></b> |
| [shippingMethod](./composables.iusesessioncontext.shippingmethod.md) | ComputedRef&lt;ShippingMethod \| null&gt; | <b><i>(BETA)</i></b> |

Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<b>Signature:</b>

```typescript
paymentMethod: Readonly<Ref<PaymentMethod | null>>;
paymentMethod: ComputedRef<PaymentMethod | null>;
```
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<b>Signature:</b>

```typescript
shippingMethod: Readonly<Ref<ShippingMethod | null>>;
shippingMethod: ComputedRef<ShippingMethod | null>;
```
1 change: 1 addition & 0 deletions docs/landing/resources/api/composables.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
| [IUseUser](./composables.iuseuser.md) | <b><i>(BETA)</i></b> interface for [useUser](./composables.useuser.md) composable |
| [IUseWishlist](./composables.iusewishlist.md) | <b><i>(BETA)</i></b> interface for [useWishlist](./composables.usewishlist.md) composable |
| [Notification\_2](./composables.notification_2.md) | <b><i>(BETA)</i></b> |
| [Routing](./composables.routing.md) | <b><i>(BETA)</i></b> |
| [UseCountries](./composables.usecountries.md) | <b><i>(BETA)</i></b> |
| [UseCountry](./composables.usecountry.md) | <b><i>(BETA)</i></b> |
| [UseCurrency](./composables.usecurrency.md) | <b><i>(BETA)</i></b> |
Expand Down
14 changes: 14 additions & 0 deletions docs/landing/resources/api/composables.routing.availabledomains.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@shopware-pwa/composables](./composables.md) &gt; [Routing](./composables.routing.md) &gt; [availableDomains](./composables.routing.availabledomains.md)

## Routing.availableDomains property

> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
>
<b>Signature:</b>

```typescript
availableDomains: any;
```
14 changes: 14 additions & 0 deletions docs/landing/resources/api/composables.routing.fallbackdomain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@shopware-pwa/composables](./composables.md) &gt; [Routing](./composables.routing.md) &gt; [fallbackDomain](./composables.routing.fallbackdomain.md)

## Routing.fallbackDomain property

> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
>
<b>Signature:</b>

```typescript
fallbackDomain: string | undefined;
```
14 changes: 14 additions & 0 deletions docs/landing/resources/api/composables.routing.fallbacklocale.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@shopware-pwa/composables](./composables.md) &gt; [Routing](./composables.routing.md) &gt; [fallbackLocale](./composables.routing.fallbacklocale.md)

## Routing.fallbackLocale property

> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
>
<b>Signature:</b>

```typescript
fallbackLocale: string | undefined;
```
14 changes: 14 additions & 0 deletions docs/landing/resources/api/composables.routing.getcurrentdomain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@shopware-pwa/composables](./composables.md) &gt; [Routing](./composables.routing.md) &gt; [getCurrentDomain](./composables.routing.getcurrentdomain.md)

## Routing.getCurrentDomain property

> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
>
<b>Signature:</b>

```typescript
getCurrentDomain: ComputedRef<string>;
```
14 changes: 14 additions & 0 deletions docs/landing/resources/api/composables.routing.geturl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@shopware-pwa/composables](./composables.md) &gt; [Routing](./composables.routing.md) &gt; [getUrl](./composables.routing.geturl.md)

## Routing.getUrl property

> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
>
<b>Signature:</b>

```typescript
getUrl: (path: string) => string;
```
Loading

1 comment on commit 4316833

@vercel
Copy link

@vercel vercel bot commented on 4316833 Jun 17, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.