Skip to content

Instantly share code, notes, and snippets.

View scottpage's full-sized avatar
🏠
Working from home

Scott Page USMC scottpage

🏠
Working from home
View GitHub Profile
declare module 'grapesjs-custom-code';
declare module 'grapesjs-lory-slider';
declare module 'grapesjs-parser-postcss';
declare module 'grapesjs-preset-webpage';
declare module 'grapesjs-style-bg';
declare module 'grapesjs-tabs';
declare module 'grapesjs-tooltip';
declare module 'grapesjs-touch';
declare module 'grapesjs-tui-image-editor';
declare module 'grapesjs-typed';
@scottpage
scottpage / Input.tsx
Created February 19, 2023 01:54
Codux discriminated union
import styles from './input.module.scss';
import classNames from 'classnames';
export type ValueType = 'boolean' | 'number' | 'string';
interface InputPropsBase {
type: ValueType;
className?: string;
value?: unknown | null;
}