File tree Expand file tree Collapse file tree 6 files changed +102
-400
lines changed
packages/openapi-fetch/examples/nextjs Expand file tree Collapse file tree 6 files changed +102
-400
lines changed Original file line number Diff line number Diff line change 1+ import React from "react" ;
12import type { Metadata } from "next" ;
23
34export const metadata : Metadata = {
45 title : "openapi-fetch + Next.js" ,
56} ;
67
7- export default function RootLayout ( { children } : { children : React . ReactNode } ) {
8+ export default function RootLayout ( {
9+ children,
10+ } : {
11+ children : React . ReactNode ;
12+ } ) {
813 return (
914 < html lang = "en" >
1015 < body > { children } </ body >
Original file line number Diff line number Diff line change 1+ import React from "react" ;
12import client from "../lib/api" ;
23
34async function getFact ( ) {
Original file line number Diff line number Diff line change 77 "prepare" : " openapi-typescript lib/api/v1.json -o lib/api/v1.d.ts"
88 },
99 "dependencies" : {
10- "next" : " 13.4.19 " ,
10+ "next" : " 14.0.1 " ,
1111 "openapi-fetch" : " workspace:^" ,
1212 "react" : " 18.2.0" ,
1313 "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