big updats
This commit is contained in:
14
app/useDjSSRContext.ts
Normal file
14
app/useDjSSRContext.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { type MaybeRefOrGetter, useSSRContext } from "vue";
|
||||
|
||||
export type DjSSRContext = {
|
||||
head: {
|
||||
title: MaybeRefOrGetter<string>;
|
||||
metatags: MaybeRefOrGetter<Array<{ name: string, content: string }>>;
|
||||
};
|
||||
registry: Record<string, unknown>;
|
||||
styles: Record<string, string>;
|
||||
};
|
||||
|
||||
export default function useDjSSRContext() {
|
||||
return useSSRContext<DjSSRContext>();
|
||||
}
|
||||
Reference in New Issue
Block a user