mirror of
https://github.com/versia-pub/frontend.git
synced 2026-01-26 04:16:02 +01:00
12 lines
382 B
TypeScript
12 lines
382 B
TypeScript
import type { Status } from "@versia/client/schemas";
|
|
import type { InjectionKey } from "vue";
|
|
import type { z } from "zod";
|
|
|
|
type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
|
|
export const key = Symbol() as InjectionKey<{
|
|
note: PartialBy<z.infer<typeof Status>, "reblog" | "quote">;
|
|
isRemote: boolean;
|
|
rebloggerNote?: z.infer<typeof Status>;
|
|
}>;
|