9 lines
249 B
TypeScript
9 lines
249 B
TypeScript
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 };
|