DefinitelyTyped/types/next-server/amp.d.ts

13 lines
268 B
TypeScript

import { NextComponentType } from "next";
export interface WithAmpConfig {
hybrid: boolean;
}
export function withAmp(
Component: NextComponentType | React.ComponentType,
config?: WithAmpConfig
): React.ComponentType;
export function useAmp(): boolean;