1.0.3 • Published 3 years ago

@rtkcd/types v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago