djledda.de main
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

useDJSSRContext.ts 395 B

2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
1234567891011121314
  1. import { type MaybeRefOrGetter, useSSRContext } from "vue";
  2. export type DJSSRContext = {
  3. head: {
  4. title: MaybeRefOrGetter<string>;
  5. metatags: MaybeRefOrGetter<Array<{ name: string, content: string }>>;
  6. };
  7. registry: Record<string, unknown>;
  8. styles: Record<string, string>;
  9. };
  10. export default function useDJSSRContext() {
  11. return useSSRContext<DJSSRContext>();
  12. }