This commit is contained in:
JOLIMAITRE Matthieu 2024-05-24 13:04:36 +02:00
parent 2737aadc7f
commit 8b6a86f17a
8 changed files with 95 additions and 10 deletions

View file

@ -3,3 +3,7 @@ import { CSSProperties } from "https://deno.land/std@0.40.0/types/react.d.ts";
export function _css(prop: CSSProperties) {
return prop;
}
// type wizardry
export type KeysOfType<T, V> = keyof { [P in keyof T as T[P] extends V ? P : never]: P };