1.0.3 • Published 2 years ago

@rtkcd/types v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 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

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago