1.0.3 • Published 8 months ago
@rtkcd/types v1.0.3
Types for fast coding with React
Create .d.ts file in src folder and import types
/// <reference types="@rtkcd/types/global" />
Types:
type FC<T = {}> = FunctionComponent<T & ChildrenType>
type Nullable<T> = T | null | undefined
type Callback<Value = void | unknown, ReturnType = void> = (
value: Value
) => ReturnType
type UnknownCallback = (...args: any[]) => any