Awesome
A polyfill of unknown
that works with legacy typescript versions (before 3.0)
export type mixed = { [key: string]: any } | object | number | string | boolean | symbol | undefined | null | void
declare global {
type unknown = mixed
}
Usage
npm i unknown-ts -D
- At the entry point of your application,
import 'unknown-ts'