fix htmx types

main
Ethan Niser 2023-09-24 11:34:43 -05:00
parent 67b73bcf5d
commit ab44e9d2e9
1 changed files with 5 additions and 5 deletions

@ -46,11 +46,11 @@ type PatchRoutes = RoutesByType<Schema, "patch">;
declare namespace JSX {
interface HtmlTag extends Htmx.Attributes {
["hx-get"]?: StartsWithApi<GetRoutes> | (string & {});
["hx-post"]?: StartsWithApi<PostRoutes> | (string & {});
["hx-put"]?: StartsWithApi<PutRoutes> | (string & {});
["hx-delete"]?: StartsWithApi<DeleteRoutes> | (string & {});
["hx-patch"]?: StartsWithApi<PatchRoutes> | (string & {});
["hx-get"]?: StartsWithApi<GetRoutes>;
["hx-post"]?: StartsWithApi<PostRoutes>;
["hx-put"]?: StartsWithApi<PutRoutes>;
["hx-delete"]?: StartsWithApi<DeleteRoutes>;
["hx-patch"]?: StartsWithApi<PatchRoutes>;
_?: string;
}
}