File tree 6 files changed +102
-400
lines changed
packages/openapi-fetch/examples/nextjs
6 files changed +102
-400
lines changed Original file line number Diff line number Diff line change
1
+ import React from "react" ;
1
2
import type { Metadata } from "next" ;
2
3
3
4
export const metadata : Metadata = {
4
5
title : "openapi-fetch + Next.js" ,
5
6
} ;
6
7
7
- export default function RootLayout ( { children } : { children : React . ReactNode } ) {
8
+ export default function RootLayout ( {
9
+ children,
10
+ } : {
11
+ children : React . ReactNode ;
12
+ } ) {
8
13
return (
9
14
< html lang = "en" >
10
15
< body > { children } </ body >
Original file line number Diff line number Diff line change
1
+ import React from "react" ;
1
2
import client from "../lib/api" ;
2
3
3
4
async function getFact ( ) {
Original file line number Diff line number Diff line change 7
7
"prepare" : " openapi-typescript lib/api/v1.json -o lib/api/v1.d.ts"
8
8
},
9
9
"dependencies" : {
10
- "next" : " 13.4.19 " ,
10
+ "next" : " 14.0.1 " ,
11
11
"openapi-fetch" : " workspace:^" ,
12
12
"react" : " 18.2.0" ,
13
13
"react-dom" : " 18.2.0"
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments