Files
djledda-web/app/useDJSSRContext.ts
Daniel Ledda 20479958bd update
2024-11-01 21:29:13 +01:00

14 lines
317 B
TypeScript

import { type MaybeRefOrGetter, useSSRContext } from "vue";
export type DJSSRContext = {
head: {
title: MaybeRefOrGetter<string>;
};
registry: Record<string, unknown>;
styles: Record<string, string>;
};
export default function useDJSSRContext() {
return useSSRContext<DJSSRContext>();
}