Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
27 lines
981 B
Plaintext
27 lines
981 B
Plaintext
import { useParams as useNextParams } from 'next/navigation.js';
|
|
import React from 'react';
|
|
export type Params = ReturnType<typeof useNextParams>;
|
|
interface IParamsContext extends Params {
|
|
}
|
|
/**
|
|
* @deprecated
|
|
* The ParamsProvider is deprecated and will be removed in the next major release. Instead, use the `useParams` hook from `next/navigation` directly. See https://github.com/payloadcms/payload/pull/9581.
|
|
* @example
|
|
* ```tsx
|
|
* import { useParams } from 'next/navigation'
|
|
* ```
|
|
*/
|
|
export declare const ParamsProvider: React.FC<{
|
|
children?: React.ReactNode;
|
|
}>;
|
|
/**
|
|
* @deprecated
|
|
* The `useParams` hook is deprecated and will be removed in the next major release. Instead, use the `useParams` hook from `next/navigation` directly. See https://github.com/payloadcms/payload/pull/9581.
|
|
* @example
|
|
* ```tsx
|
|
* import { useParams } from 'next/navigation'
|
|
* ```
|
|
*/
|
|
export declare const useParams: () => IParamsContext;
|
|
export {};
|
|
//# sourceMappingURL=index.d.ts.map |