mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 10:55:57 +00:00
fix(ui): types
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
"react": "^19.2.6",
|
||||
"react-dom": "^19.2.6",
|
||||
"tailwind-merge": "^3.6.0",
|
||||
"ts-morph": "^28.0.0",
|
||||
"vite": "^8.0.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -10,7 +10,7 @@ export default defineConfig({
|
||||
port: 3000,
|
||||
},
|
||||
resolve: {
|
||||
external: ['typescript', 'ts-morph'],
|
||||
external: ['typescript'],
|
||||
tsconfigPaths: true,
|
||||
},
|
||||
plugins: [
|
||||
|
||||
@@ -35,11 +35,7 @@ declare module 'mdx/types.js' {
|
||||
}
|
||||
}
|
||||
|
||||
function Image(
|
||||
props: ImgHTMLAttributes<HTMLImageElement> & {
|
||||
sizes?: string;
|
||||
},
|
||||
) {
|
||||
function Image(props: ImgHTMLAttributes<HTMLImageElement>) {
|
||||
return (
|
||||
<FrameworkImage
|
||||
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px"
|
||||
|
||||
@@ -233,7 +233,7 @@
|
||||
"inlinedDependencies": {
|
||||
"@formatjs/fast-memoize": "3.1.5",
|
||||
"@formatjs/intl-localematcher": "0.8.8",
|
||||
"@shikijs/transformers": "4.0.2",
|
||||
"@shikijs/transformers": "4.1.0",
|
||||
"image-size": "2.0.2",
|
||||
"negotiator": "1.0.0",
|
||||
"npm-to-yarn": "3.0.1",
|
||||
|
||||
@@ -35,11 +35,7 @@ declare module 'mdx/types.js' {
|
||||
}
|
||||
}
|
||||
|
||||
function Image(
|
||||
props: ImgHTMLAttributes<HTMLImageElement> & {
|
||||
sizes?: string;
|
||||
},
|
||||
) {
|
||||
function Image(props: ImgHTMLAttributes<HTMLImageElement>) {
|
||||
return (
|
||||
<FrameworkImage
|
||||
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px"
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
},
|
||||
"types": ["@types/node"]
|
||||
},
|
||||
"exclude": ["node_modules", "dist", "eslint.config.mjs"]
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
|
||||
@@ -140,9 +140,11 @@ function renderMarkdown(this: ShikiTransformerContextCommon, md: string): Elemen
|
||||
return this.codeToHast(node.value, {
|
||||
...this.options,
|
||||
transformers: [],
|
||||
meta: {
|
||||
__raw: node.meta ?? undefined,
|
||||
},
|
||||
meta: node.meta
|
||||
? {
|
||||
__raw: node.meta,
|
||||
}
|
||||
: {},
|
||||
lang,
|
||||
}).children[0] as Element;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user