next-ssg-transform.d.ts 584 B

1234567891011121314
  1. import { NodePath, PluginObj, types as BabelTypes } from 'next/dist/compiled/babel/core';
  2. export declare const EXPORT_NAME_GET_STATIC_PROPS = "getStaticProps";
  3. export declare const EXPORT_NAME_GET_STATIC_PATHS = "getStaticPaths";
  4. export declare const EXPORT_NAME_GET_SERVER_PROPS = "getServerSideProps";
  5. declare type PluginState = {
  6. refs: Set<NodePath<BabelTypes.Identifier>>;
  7. isPrerender: boolean;
  8. isServerProps: boolean;
  9. done: boolean;
  10. };
  11. export default function nextTransformSsg({ types: t, }: {
  12. types: typeof BabelTypes;
  13. }): PluginObj<PluginState>;
  14. export {};