unknown-ts

A polyfill of unknown that works with legacy typescript versions (before 3.0)

Usage no npm install needed!

<script type="module">
  import unknownTs from 'https://cdn.skypack.dev/unknown-ts';
</script>

README

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
}