diff --git a/site/api/components/Class/Constructors.tsx b/site/api/components/Class/Constructors.tsx
index 4aec91a20..d74a2935c 100644
--- a/site/api/components/Class/Constructors.tsx
+++ b/site/api/components/Class/Constructors.tsx
@@ -24,7 +24,9 @@ export function Constructors({
{v.accessibility
?
{v.jsDoc?.doc}
} diff --git a/site/api/components/Class/Method.tsx b/site/api/components/Class/Method.tsx index 29281a7e3..963614ecc 100644 --- a/site/api/components/Class/Method.tsx +++ b/site/api/components/Class/Method.tsx @@ -73,13 +73,23 @@ export function Def( return ( <> {method.kind == "setter" - ? set{" "} + ? ( + + set{" "} + + ) : method.kind == "getter" - ? get{" "} + ? ( + + get{" "} + + ) : ( "" )} - {method.name} + + {method.name} +-{children}
++ + ts +{"\n\n"} > diff --git a/site/api/components/PropertyName.tsx b/site/api/components/PropertyName.tsx index 086cf18ed..da759d7c6 100644 --- a/site/api/components/PropertyName.tsx +++ b/site/api/components/PropertyName.tsx @@ -9,11 +9,11 @@ export function PropertyName({ }) { return ( <> - + {name} {(optional || hasType) && ( - + {optional && <>?>} {hasType && <>:>} diff --git a/site/api/components/styles.tsx b/site/api/components/styles.tsx index 3b66206e8..49c955875 100644 --- a/site/api/components/styles.tsx +++ b/site/api/components/styles.tsx @@ -1,25 +1,33 @@ import { ComponentChildren } from "preact"; export function StyleKw({ children }: { children?: ComponentChildren }) { - return {children}; + return ( + {children} + ); } export function StyleStrLit({ children }: { children?: ComponentChildren }) { - return {children}; + return ( + {children} + ); } export function StyleTypeRef({ children }: { children?: ComponentChildren }) { return ( - + {children} ); } export function StyleCallee({ children }: { children?: ComponentChildren }) { - return {children}; + return ( + {children} + ); } export function StyleNum({ children }: { children?: ComponentChildren }) { - return {children}; + return ( + {children} + ); }+- {"\n\n"}{children}